Closed
Bug 619650
Opened 15 years ago
Closed 15 years ago
XSS vulnerability in review display on addons.mozilla.org
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
addons.mozilla.org Graveyard
Public Pages
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ricky, Assigned: jbalogh)
Details
(Keywords: reporter-external, sec-critical, wsec-xss, Whiteboard: [infrasec:xss][ws:critical])
Attachments
(1 file)
|
1020 bytes,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b7) Gecko/20101111 Firefox/4.0b7
Build Identifier:
The following URL outputs the commenter's display name without sanitizing it:
https://addons.mozilla.org/en-US/firefox/addon/264279/reviews/259194/
Reproducible: Always
| Reporter | ||
Comment 1•15 years ago
|
||
Sorry, it's actually the addon developer's display name, not the commenter's.
Updated•15 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: [infrasec:xss][ws:high]
| Reporter | ||
Comment 2•15 years ago
|
||
Ugh, sorry for the spam, I was right the first time.
| Reporter | ||
Comment 3•15 years ago
|
||
Here's an attempt at a patch to fix the issue.
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → jbalogh
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 4•15 years ago
|
||
I changed my display_name to the same <script> as yours but I can't reproduce this on our preview server: https://addons.allizom.org/en-US/firefox/addon/1865/reviews/254945/.
We should be able to trust Jinja to escape the interpolated variables within {% trans %}.
| Assignee | ||
Comment 5•15 years ago
|
||
In [3]: import jingo
In [4]: jingo.env.from_string("""{% trans x='<script>' %}ff{{ x }}{% endtrans %}""").render()
Out[4]: u'ff<script>'
| Assignee | ||
Comment 6•15 years ago
|
||
We were running an older version of Jinja in production than we have in preview. I was not aware of any security issues with Jinja 2.3, but now we are on 2.5.5.
Thanks Ricky!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 7•15 years ago
|
||
Awesome, thanks for the quick fix!
Updated•15 years ago
|
Whiteboard: [infrasec:xss][ws:high] → [infrasec:xss][ws:critical]
Comment 9•15 years ago
|
||
Verified FIXED on prod: https://addons.mozilla.org/en-US/firefox/addon/264279/reviews/259194/. No XSS-capable alert() thrown.
Status: RESOLVED → VERIFIED
Updated•15 years ago
|
Summary: XSS vulnerability in review display → XSS vulnerability in review display on addons.mozilla.org
Updated•15 years ago
|
Group: client-services-security
Comment 10•14 years ago
|
||
Comment on attachment 498082 [details] [diff] [review]
Escape user in review_list
Review of attachment 498082 [details] [diff] [review]:
-----------------------------------------------------------------
nice.
Comment 11•13 years ago
|
||
Adding keywords to bugs for metrics, no action required. Sorry about bugmail spam.
Keywords: wsec-xss
Updated•13 years ago
|
Flags: sec-bounty+
Updated•10 years ago
|
Keywords: sec-critical
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
Updated•2 years ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•