Skip to content
Info disclosure Disclosed report Intermediate CVE-2018-5123

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.

Holger Fuhrmannek Follow

Originally disclosed on Mozilla

Critical View original
  • Fixed in 21 days
  • Paid in 3 days
  • Disclosed after 21 days
Text
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.

The original report as published on Mozilla's Bugzilla, by Holger Fuhrmannek. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

  1. Download the attached poc.html file.
  2. Log in to Bugzilla.
  3. Open poc.html and enter a confidential bug ID and the Bugzilla URL.
  4. Click 'Get Summary'.
  5. 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.

More by Holger Fuhrmannek

View all

32 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.