Skip to content
Path traversal Write-up Beginner

How I hacked Google to read files from their servers for free!

An outdated Atlassian Bamboo instance on a Google acquisition exposed a /chart endpoint that returned a stack trace when a filename parameter was missing. By adding a filename parameter, the author could read arbitrary files from the /tmp folder without authentication.

Harish SG Follow

Published on medium.com

Hey Guys, This is Harish! I used to hunt to Microsoft and Google VRP, This is my first write up!

Harish SG, on medium.com

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 /chart endpoint accepted a user-supplied filename and read it without authentication or path validation.

What the attacker needed

No authentication required; access to the /chart endpoint

The fix

The bug was fixed according to the report.

How it was found

  1. Find an outdated Atlassian Bamboo instance on a Google acquisition.
  2. Send a GET request to the /chart endpoint and observe a stack trace mentioning a missing filename parameter.
  3. Add a filename parameter to the request.
  4. Read files from the /tmp folder without authentication.

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 web server sometimes shows detailed error messages that reveal how it works. Here, an error message hinted that a file name could be supplied, and the server then returned files from its temporary folder to anyone who asked. This is dangerous because temporary folders can hold sensitive data.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.