Using cookie bomb trick it is possible to get content of the attachment of any security bug.
Originally disclosed on Mozilla
- Fixed in 54 days
- Paid in 58 days
- Disclosed after 54 days
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
Steps to reproduce:
Hi,
I have found a quite interesting security bug on bugzilla
since attachments are hosted in a subdomain, it is possible to cookie bomb any page at bugzilla.
This kind vulnerability was first found by: Egor Homakov (Have a look at: http://homakov.blogspot.com.br/2014/01/cookie-bomb-or-lets-break-internet.html )
that said, it is possible cookie bomb a bugzilla attachment domain and then get the attachment url containning the "t"(security token) and then getting the content of the attachment.
when you visit the attachment of a security bug bugzilla will:
1. visit https://bugzilla.mozilla.org/attachment.cgi?id=[ATTACHMENT-ID]
2. redirect to https://bug[BUG-ID].bugzilla.mozilla.org/attachment.cgi?id=[ATTACHMENT-ID]&t=[security-token]
once the cookie bomb the attachment domain, it'll present a error page which will make the "t" still valid to be seen by a browser that doesn't have it bombed.
it's complicated for explainning so let's exploit it :)
i'm only able to exploit it using firefox.
steps to reproduce(this works only in Mozilla FIREFOX):
1. Log in https://bugzilla-dev.allizom.org
2. visit bugzilla-dev.allizom.org/attachment.cgi?id=8591427
3. in the prompted box insert the ID of the security bug you'd like to get the token.
4. wait 3 seconds.
5. now drag and drop the content of the image to the box below it.
6. now copy the url displayed in the box and open it in another browser that you're not logged in bugzilla.
7. see the content of the security bug.
I think this is critical, as this isn't hard to make a user drag and drop the content of a image to a box and bugzilla
attachments are not protected against clickjacking, it can be framed and exploited from www.evilpage.com.
let me know if you understand this vulnerability.
Cheers,
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A security bug in Attachments & Requests. Mozilla made it public on 24 August 2015.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.