Closed Bug 966740 Opened 12 years ago Closed 12 years ago

XSS in /events

Categories

(Websites :: other.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: danutzu7, Assigned: nemo-yiannis)

References

Details

(Keywords: reporter-external, sec-high, wsec-xss, Whiteboard: [kb=1260707] [site:reps.mozilla.org][[reporter-external])

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36 Steps to reproduce: I was browsing reps.mozilla.org and decided to do a few tests. And found this: https://reps.mozilla.org/api/v1/event/?offset=0&limit=0&start__gte=2014-02-02%3Cimg%20src=1%20onerror=alert%28document.domain%29%3E It looks like the start__gte parameter is not filtered while being showed in the error message. Browser: Firefox 26.0 on Windows 8.1 Actual results: The alert box appeared; this means that we have the possibility to execute our own javascript in the name of other users. Expected results: The error message should have been filtered. Thank you!
Thanks for reporting Daniel.
Group: mozilla-reps → mozilla-corporation-confidential
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Cross site scripting → XSS in /events
Assignee: nobody → jgiannelos
Whiteboard: [kb=1260707]
moving this to websites::other.mozilla.org so we can set the bounty flag for this issue. This at least deserves consideration.
Group: mozilla-corporation-confidential → websites-security
Component: reps.mozilla.org → other.mozilla.org
Product: Mozilla Reps → Websites
Whiteboard: [kb=1260707] → [kb=1260707] [site:reps.mozilla.org][[reporter-external]
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
This was fixed here: https://github.com/mozilla/remo/commit/abd2539a68591cfed2acc1c140bb81de921726de Code is on stage, http://reps.allizom.org Curtis, would you like to verify it's fixed or shall I do it?
Flags: needinfo?(curtisk)
Hello. If it helps, it looks ok from my point of view. Thanks.
Looks good from my perspective
Flags: needinfo?(curtisk)
Depends on: 974833
Flags: sec-bounty? → sec-bounty+
Keywords: sec-high, wsec-xss
Group: websites-security
You need to log in before you can comment on or make changes to this bug.