← SSRF lesson
Server-SideSSRFIntermediate40 min+100 XP

RSS Import From Inside

The RSS Importer fetches a user-supplied URL from inside the container. Reach a loopback-only endpoint and recover its secret.

“The image preview fetched a URL. The server had a second identity: localhost.”

CWE-918OWASP Top 10 A10:2021OWASP ASVS 12.6.1
The story
You are not asking the server to show you a URL. You are asking the server to make a request from where it stands, with its network access and its trust.

The application accepts a URL and fetches it without restricting the destination. Loopback, link-local metadata, internal services and redirects are all reachable from the server even when your browser cannot reach them.

Your objective
  • Map the URL fetch feature
  • Point the fetch at loopback
  • Read the internal secret and capture the flag
Boundary under test

Application network to internal network

Field guide · request anatomy

Where to look before you type a payload

01Accept URL

A feature accepts a webhook, image, import, preview or callback URL.

02Validate

The handler may check the string, scheme or hostname, but not the final destination.

03Resolve

DNS returns an address, which may be loopback, private, link-local or a metadata service.

04Connect

The server opens the connection from a trusted network position and may follow redirects.

Progressive hints

Open one hint at a time. The first two build the model; the last two point at the boundary.

Hint 1

Find the URL-fetching feature.

Hint 2

Try loopback addresses and alternate representations.

Hint 3

The worker can reach loopback. Try http://127.0.0.1:3000/internal/flag.

Hint 4 · near the answer

Fetch the internal flag route and read the secret.

Guided workbench

Observe → Hypothesize → Test → Prove → Explain

This is the same loop a reviewer expects in a report. Your draft stays in this browser; nothing is submitted until you choose to export it.

0/15steps complete
Observe0/3
Hypothesize0/3
Test0/3
Prove0/3
Explain0/3

Evidence log

Write for a reviewer who was not in the room. Every claim needs a request, response or state change behind it.

Preview the evidence report
# Lab evidence report — RSS Import From Inside

- Family: SSRF
- Lab ID: web-ssrf-rss
- Date: 2026-12-05

## Workflow

### Observe

- [ ] Open "RSS Import From Inside" and record /import, the HTTP method and the role you are given.
- [ ] List every parameter, header, cookie and object identifier the normal flow exposes.
- [ ] Save a baseline response: status, body shape, timing and the fields that change by user.

### Hypothesize

- [ ] Name the server decision that protects /import, and the evidence it should use.
- [ ] Use the clue as a constraint, not an answer: The preview worker follows loopback addresses. Try http://127.0.0.1 on the lab port.
- [ ] Predict the exact status, body or state change that would prove the decision is missing.

### Test

- [ ] Start from the baseline and change one value: the feed URL.
- [ ] Keep the request replayable; vary encoding, method or identifier location only after the first result.
- [ ] Capture the full request and response for the winning attempt, including the flag.

### Prove

- [ ] Capture the flag and name the exact foreign object, role or state change it proves.
- [ ] Repeat from a clean session and confirm the result is not cached or stale.
- [ ] State impact precisely: what data or action did you actually obtain?

### Explain

- [ ] State the root cause without naming the payload: which decision failed?
- [ ] Name the control that prevents recurrence and the layer where it belongs.
- [ ] Write one regression test that fails before the fix and passes after it.

## Evidence

### Target and baseline

_Not recorded._

### Hypothesis

_Not recorded._

### Winning request

_Not recorded._

### Proof

_Not recorded._

### Root cause

_Not recorded._

### Control and regression test

_Not recorded._

## Analyst conclusion

The proof demonstrates the missing control above. The regression test should fail against the vulnerable behavior and pass after remediation.
Solution and debrief
Locked until you capture the flag.

The full request, the reasoning and the debrief unlock after a successful capture. That is deliberate: struggle first, then consolidate.

What a reviewer will ask

False positives to rule out

  • A URL returns a connection error: try another port, scheme or redirect path; the failure may be a firewall, not a control.
  • The response is blank but the request took longer: use an out-of-band callback or timing to confirm reachability.
  • Only HTTPS is allowed: test redirects from an allowed HTTPS host to an internal target.

Regression tests to name

  • Loopback: The request is blocked before connection
  • Metadata: Network policy and application validation both deny it
  • Redirect: The redirect is not followed or the final host is revalidated
The defender's move
  • Allowlist destinations and resolve DNS before connecting; block link-local and metadata ranges.
  • Use a dedicated egress proxy with no access to internal networks.
  • Do not return raw internal responses to the user.
See the secure-code pattern and all 4 regression tests →
الخلاصة

أي جلب من الخادم هو طلب من شبكة الخادم، وليس من شبكتك.