Hacking Google for fun and profit
The Firebase storage folder name field did not validate user input for JavaScript, allowing an attacker to create a folder with a JavaScript payload as its name and execute script on the page. An attacker could potentially steal Google cookies by sending a malicious Firebase project link.
introvertmac.wordpress.com
Published on introvertmac.wordpress.com
I have been doing bug bounties since September 2013(Asana was the first), participated and qualified in almost all bug bounties at least once. My bucket list had Facebook, Yahoo, Twitter, Dropbox, Github and 100+ such sites (including couple of YC Startups ) but Google VRP was tough nut to crack.
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
Impact
In the worst case, an attacker could steal Google cookies by sending a malicious Firebase project link, though the author notes they could not trigger an alert box with the initial payload.
What the attacker needed
A Firebase project; victim clicks a link
How it was found
- Create a folder in the Firebase storage section with a name containing JavaScript code.
- The JavaScript executes on the page when the folder is created or viewed.
- Inject JavaScript into the page DOM from the URL by crafting a link with an image tag in the path.
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.
A website let users name a folder, but it didn't check what they typed. If someone typed code instead of a normal name, the website would run that code in the browser of anyone who viewed the folder. This could let an attacker steal login information.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.