Closed Bug 511571 Opened 16 years ago Closed 16 years ago

https://creative.mozilla.org/register has an XSS vulnerability

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Gavin, Assigned: ryansnyder)

References

()

Details

(Keywords: wsec-xss)

Attachments

(1 file)

Reported on IRC by "sipher". Looks like the username is being spit back unfiltered. Demo: http://statusbarn.com/tests/mozcxsstest.html Should probably also be checking referrers to mitigate CSRF.
(In reply to comment #0) > Should probably also be checking referrers to mitigate CSRF. Checking referrers is not in any way a correct form of CSRF mitigation. The main mitigation tactic that I've seen used and that works is to use a secret, user-specific token in all form submissions.
Assignee: nobody → ryan
* Adding token checking to all unauthenticated forms. * Fixing UI for form on reset password page. == Sending application/views/forgot.php Sending application/views/login.php Sending application/views/register.php Adding application/views/verify_reset_password.php Sending modules/auth/controllers/auth.php Sending modules/auth/views/forgot.php Sending modules/auth/views/login.php Sending modules/auth/views/register.php Transmitting file data ........ Committed revision r49627.
Patching registration page, which was not escaping characters in form outputs. == Sending application/views/register.php Transmitting file data . Committed revision 49628.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Verified FIXED on http://mcc.stage.mozilla.com/register; see screenshot in comment 4. No alert() is run, which means the script doesn't get executed.
Status: RESOLVED → VERIFIED
This was pushed.
Group: websites-security
Adding keywords to bugs for metrics, no action required. Sorry about bugmail spam.
Keywords: wsec-xss
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: