Closed
Bug 620125
Opened 15 years ago
Closed 15 years ago
Email Header Injection Vulnerability in Mozilla.org
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: neal, Assigned: dchanm+bugzilla)
References
()
Details
(Keywords: reporter-external, Whiteboard: [infrasec:input][ws:high])
Attachments
(1 file, 1 obsolete file)
|
1.37 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Build Identifier:
mozilla.org/causes/open/submit/index.php is vulnerable to email header injection via the $name/$email variables. It's possible for an attacker to add arbitrary headers via a custom POST request: that allows a malicious user to send spam via Mozilla's servers.
Reproducible: Always
Steps to Reproduce:
1. Craft malicious POST request to mozilla.org/causes/open/submit/index.php
2. Done!
| Reporter | ||
Comment 1•15 years ago
|
||
A similar vulnerability can also be found in mozilla.org/contribute/email/index.php. The only vulnerable variable there is $email and it's protected by a regular expression, which limits the ways an injection attack can work. However, it is possible to provide your email address as
aa%0D%0Acc: somename<example@example.com
which adds a CC header to the email.
Updated•15 years ago
|
Assignee: infrasec → nobody
Group: mozilla-confidential → websites-security
Component: Infrastructure Security: Web Security → other.mozilla.org
Product: mozilla.org → Websites
QA Contact: clyon → other-mozilla-org
Whiteboard: [infrasec:input][ws:high]
Updated•15 years ago
|
Component: other.mozilla.org → www.mozilla.org
QA Contact: other-mozilla-org → www-mozilla-org
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #1)
> A similar vulnerability can also be found in
> mozilla.org/contribute/email/index.php. The only vulnerable variable there is
> $email and it's protected by a regular expression, which limits the ways an
> injection attack can work. However, it is possible to provide your email
> address as
>
> aa%0D%0Acc: somename<example@example.com
>
> which adds a CC header to the email.
The contribute one is filed as bug #619929 . The fix is waiting to be pushed.
I'll look into the causes one.
Assignee: nobody → dchan
| Assignee | ||
Comment 4•15 years ago
|
||
Copied over the validate_email from contribute
Added validate_name which checks for control characters
Attachment #498830 -
Flags: review?(reed)
| Assignee | ||
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•15 years ago
|
||
Comment on attachment 498830 [details] [diff] [review]
proposed patch
Can we go with a whitelist for name rather than a blacklist? As it stands, couldn't you also include \n or \r in the name, allowing other e-mail addresses via that field?
Attachment #498830 -
Flags: review?(reed) → review-
| Assignee | ||
Comment 6•15 years ago
|
||
Rewrite validate_name to look for word, digits, space
Attachment #498830 -
Attachment is obsolete: true
Attachment #498852 -
Flags: review?(reed)
| Assignee | ||
Updated•15 years ago
|
Attachment #498852 -
Attachment is patch: true
Attachment #498852 -
Attachment mime type: application/octet-stream → text/plain
Comment 8•15 years ago
|
||
The 'What is an open web?' pages have been taken down (see bug 616580). I assume that fixes this issue?
http://www.mozilla.org/causes/open/
| Reporter | ||
Comment 9•15 years ago
|
||
Correct. And bug 619929 apparently covers the issue in /contribute/email/, so it sounds like this bug can be marked as resolved. :)
| Assignee | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
| Assignee | ||
Comment 10•13 years ago
|
||
Comment on attachment 498852 [details] [diff] [review]
rev v2
Clearing review flag since this bug is resolved
Attachment #498852 -
Flags: review?(reed)
Updated•13 years ago
|
Flags: sec-bounty+
Updated•9 years ago
|
Group: websites-security
Updated•2 years ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•