Prevent cross-site image requests from leaking contents of certain fields due to regex search
A third-party website could extract confidential bug information from Bugzilla by using image requests to report.cgi that return an image only when a regex query matches, allowing the site to infer the summary character by character. An attacker could read the summary of a security-sensitive bug if a logged-in user with access visited the malicious page.
Originally disclosed on Mozilla
- Fixed in 21 days
- Paid in 3 days
- Disclosed after 21 days
Via the image generation in report.cgi it is possible for a third-party website to extract confidential bug information if a logged-in user with access to a confidential bug visits the website. For example, a third-party website can access the summary of a security-sensitive bug report.
The problem exists because via report.cgi complex queries to the bugzilla database can be done and if there is a result, an image will be returned, but if the query has no result no image is returned. Because of this a third-party website can extract information by detecting if certain images can be loaded or not.
POC:
1.) download attached poc.html
2.) login to bugzilla
3.) open poc.html and enter a bug id of a confidential bug and the url of the bugzilla installation (I have tested the poc with URL: https://bugzilla.mozilla.org and Bug ID: 1395143)
4.) click on “Get Summary”
After a while, most of the summary is displayed at the html file.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the report.cgi image generation endpoint returns a valid image only when a database query matches, creating an oracle that reveals whether a guessed pattern is present in confidential data.
Impact
A third-party website could extract confidential bug information, such as the summary of a security-sensitive bug, if a logged-in user with access visits the site.
What the attacker needed
Victim is logged in to Bugzilla; victim has access to a confidential bug; victim visits a malicious website
How it was found
- Download the attached poc.html file.
- Log in to Bugzilla.
- Open poc.html and enter a confidential bug ID and the Bugzilla URL.
- Click 'Get Summary'.
- After a while, most of the summary is displayed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Bugzilla is a bug tracking system. A malicious website can make a logged-in user's browser request images from Bugzilla; because the image only appears when a secret query matches, the site can guess the secret one character at a time. This is called a cross-site leak.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.