Whoa, whoa.. no need to edit the core files.
In your _config.php, you can create arbitrary URL rules.
Director::addRules(50, array(
'some-url/$Action/$ID/$OtherID/$Foo/$Bar' => 'MyController'
));
Then the url /some-url/action/123/456/more/stuff
will feed those params to the MyController class.