MantisBT: master-1.2.x 511564cc

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2014-11-15 03:57 master-1.2.x 74ac9bfc
Affected Issues  0017890: CVE-2014-9269: XSS in extended project browser
Changeset

Fix 0017890: XSS in extended project browser

Extended project browser allows projects to be passed in as A;B.
helper_get_current_project() and helper_get_current_project_trace() then
explodes the string by ';' and don't check that A is an int (a project /
sub-project id). Finally, print_extended_project_browser() prints the
result of the split into a javascript array.

Paul Richards discovered the issue and wrote the original patch for it.
His code was modified to remove a redudant typecast as well as an
unnecessary foreach loop in helper_get_current_project(), replacing it
with a single type cast.

mod - core/helper_api.php Diff File