SSRF & LFI In Uploads Feature
The uploads feature allowed an attacker to make the server request arbitrary URLs, leading to SSRF, and then use that to include local files (LFI), exposing backend resources. The text does not provide specific details on how the attacker exploited it.
Published on medium.com
Hello fellow hackers, today I will discuss how I found a Server-Side Request Forgery (SSRF) which lead to a Local File Inclusion (LFI) that exposed backend resources in a bug bounty program.
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 uploads feature did not properly validate user-supplied URLs or file paths, allowing the server to make requests to arbitrary destinations and include local files.
Impact
An attacker could access backend resources, potentially exposing sensitive information.
What the attacker needed
Access to uploads feature
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.
This report describes two related security holes in a file upload feature. First, an attacker could trick the server into fetching a web address of their choosing (Server-Side Request Forgery). Second, that let them read files stored on the server that should not be accessible (Local File Inclusion). Together, these could reveal sensitive information about the system.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.