Breaking the Trust Boundary: SSRF via a Misconfigured Sentry Tunn
The Sentry tunnel endpoint accepted a client-supplied DSN and used its host to make a server-side HTTP POST request without validation. An attacker could direct the server to send requests to arbitrary external domains, and potentially to internal or sensitive resources.
Published on infosecwriteups.com
Free Article Link: Click for free!
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
The application relied on a client-supplied DSN value without validation and used its host directly to determine the destination of server-side requests.
Impact
An attacker could make the server perform arbitrary outbound HTTP requests, potentially reaching internal services or exfiltrating telemetry, though the report only demonstrated interaction with an external domain.
What the attacker needed
An authenticated session; ability to intercept and modify requests
The fix
The tunnel endpoint should enforce a strict allowlist of trusted Sentry domains, reject arbitrary DSN values, and prevent the endpoint from acting as a proxy; the text says validation was applied and attacker-controlled domains were no longer reachable.
How it was found
- Intercept the POST request to the tunnel endpoint in an authenticated session.
- Replace the DSN host with an attacker-controlled domain.
- Send the modified request to the tunnel endpoint.
- Observe a server-side HTTP POST on the collaborator and confirm the source IP belongs to the target's backend.
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 server-side request forgery (SSRF) bug lets an attacker make the server send requests to places the attacker chooses. Here, the error-logging endpoint trusted a destination address supplied by the browser, so the tester pointed it at their own server and saw the target's backend connect out. That shows the server can be used as a relay to reach other systems.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.