Skip to content
SSRF Write-up Beginner

From Vulnerability to Validation: How we fixed a Critical SSRF bu

A utility function concatenated a user-supplied endpoint onto a base API URL, creating a potential SSRF flaw. An attacker could craft an endpoint to make the server send requests to internal services or an attacker-controlled domain, potentially leaking the auth token.

Sefriano Edsel Follow

Published on medium.com

In the world of software development, we often talk about “shifting left” — the practice of moving security testing and validation to the earliest possible point in the development lifecycle. It’s a core principle of our “Secure Programming” competency, which challenges us to not just apply security standards but to…

Sefriano Edsel, 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

Impact

An attacker could potentially make the server request internal services or send the application's auth token to an attacker-controlled server, though the text does not confirm exploitation.

What the attacker needed

Ability to control the endpoint parameter

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.

The code built a web address by gluing a user-provided piece onto a fixed base address. If the user-provided piece started with something like '//' or 'http://', the final address could point to a completely different server. That could let an attacker trick the application's server into contacting internal systems or sending the user's token to the attacker.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.