Google Ads — Information Disclosure via null pointer exception
The Google Ads conversion upload endpoint returned a full Java stack trace when a JSON parameter was empty, exposing internal class and method names. An attacker could use this information to learn about the application's internal structure.
Published on valbrux.it
Well well! After having been pretty busy with some university mid-term exams, I finally found some spare-time to dig deep into bug bounty programs.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application did not handle a null or empty value for the authenticateUserId parameter, causing an uncaught NullPointerException that was returned to the user with full stack trace details.
Impact
The stack trace could have provided an attacker with sensitive information about internal application environment, such as names of Java classes and methods, which might assist in further attacks.
What the attacker needed
Access to Google Ads; ability to send crafted HTTP requests
The fix
The bug was fixed by Google.
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 write-up has not been written yet. The Original tab links to the source.
When a web application crashes, it sometimes shows a detailed error message that includes the internal code structure. Here, sending a request with a missing value caused the server to reveal the names of the programming classes and methods it uses. This helps attackers understand how the system is built, which can aid in finding deeper flaws.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.