Closed Bug 1228069 Opened 10 years ago Closed 10 years ago

XSS in OrangeFactor date parameters

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

(Keywords: sec-moderate, wsec-xss)

Attachments

(1 file)

I've vetted all the instances where we use the args directly, and they seem fine (eg the bugid is cast to int, and other params are encodeURIComponent()ed before being used). Much of the code here is painful to look at (a lot has changed in frontend design patterns since 2010), I'm very much looking forwards to when we replace OrangeFactor... :-)
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Attachment #8692609 - Flags: review?(mcote)
Comment on attachment 8692609 [details] [diff] [review] Validate startday and endday params Review of attachment 8692609 [details] [diff] [review]: ----------------------------------------------------------------- Looks good; sorry for the delay.
Attachment #8692609 - Flags: review?(mcote) → review+
remote: https://hg.mozilla.org/automation/orangefactor/rev/53d63e91c028 [webtools@brasstacks1.dmz.scl3 ~]$ cd ~/apps/orangefactor/src/orangefactor/ && hg pull -uv pulling from http://hg.mozilla.org/automation/orangefactor/ searching for changes all local heads known remotely adding changesets adding manifests adding file changes added 1 changesets with 1 changes to 1 files resolving manifests getting html/scripts/woo.utils.js 1 files updated, 0 files merged, 0 files removed, 0 files unresolved [root@brasstacks1.dmz.scl3 ~]# cd /home/webtools/apps/orangefactor/src/orangefactor/ && ./deploy.sh [root@brasstacks1.dmz.scl3 orangefactor]# /etc/init.d/orangefactor stop; /etc/init.d/orangefactor start; /etc /init.d/nginx reload stopping orangefactor [ OK ] starting orangefactorspawn-fcgi: child spawned successfully: PID: 29052 [ OK ] Reloading nginx: [ OK ] Deploy confirmed: [~/src]$ curl -s 'https://brasstacks.mozilla.com/orangefactor/scripts/woo.utils.js' | grep 'Prevents XSS' // Prevents XSS, since the dates are inserted into the markup in all sorts of awful ways. And the link in comment 0 no longer reproduces. Thank you for reporting! :-)
Group: webtools-security
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Yes sorry guys i have reported it twice ...
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: