How I gained access to Sony’s database
A page parameter on a Sony subdomain accepted a file path, letting the author read server configuration files including database credentials. The author reports gaining access to Sony's database configuration through this path traversal.
{{media:0}}
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
The author could read server configuration files that contained database configuration, which could expose database access details.
What the attacker needed
A Sony subdomain with a page parameter; no account needed
How it was found
- Search for Sony subdomains using a search engine dork.
- Find the bpeng.sony.co.kr subdomain and notice the pagename parameter.
- Change the pagename value and observe that a different page is loaded.
- Try a traversal path to reach the WEB-INF configuration file.
- Receive the configuration file contents, including database configuration files.
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 page sometimes takes a file name from the address bar and loads that file. If the site does not check the name, someone can ask for files outside the intended folder, such as server configuration files. Here that let the author read files that held database settings.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.