# Atomic Server: Unauthenticated full-response SSRF in Atomic-Server /bookmark endpoint

Unauthenticated GET /bookmark in Atomic-Server fetches attacker URLs server-side with no private-IP deny-list and reflects the response body, enabling full-response SSRF to loopback and cloud metadata.

- Payout: Research
- Severity: high
- Program: Atomic Server
- Found by: raysabee
- Disclosed: 2026-11-18
- CVE: CVE-2026-69158
- Write-up quality: 8/10
- Original: https://github.com/advisories/GHSA-ff87-73jp-f3v4
- Library page: https://bugbountylibrary.com/r/ghsa%3AGHSA-ff87-73jp-f3v4
- Tags: area:web domain:web impact:data-leak impact:internal-access kind:research platform:ghsa sev:high tech:rust technique:source-review vuln:auth-bypass vuln:ssrf

**Target:** GET /bookmark endpoint of atomic-server (Rust)
**Root cause:** Endpoint dispatch in get_resource_extended returns via call_endpoint before hierarchy::check_read runs, and call_endpoint performs no authorization; the bookmark handler discards the caller and passes the url param to fetch_data, whose fetch_body only checks url.starts_with("http") with no loopback/private/link-local deny-list.
**Steps:**
1. Send unauthenticated `GET /bookmark?url=http://127.0.0.1:<internal-port>/&name=x` to reach a loopback service.
2. Send `GET /bookmark?url=http://169.254.169.254/latest/meta-data/&name=x` to reach IMDSv1 cloud metadata.
3. Read the fetched body reflected in the returned resource's `name`/`description`/`preview` fields.
**How found:** Source trace: noticed the bookmark endpoint registered unconditionally, followed get_client_agent mapping unauthenticated GET to ForAgent::Public, spotted the early `return self.call_endpoint(...)` at db.rs:1011 preceding check_read at :1017, then confirmed the handler discards for_agent and fetch_body only checks the http prefix; repo-wide grep found no is_loopback/is_private/169.254/localhost deny-list.
**Exploitation:** Attacker with network reach issues plain unauthenticated GETs to /bookmark with arbitrary url values; the server performs the outbound GET (2s ureq timeout) and HTML-parses the body into name/description/image/preview markdown returned to the caller, giving full-response read of internal services and IMDSv1 metadata.
**Escalation:** Cloud metadata read (IMDSv1) can yield credentials enabling further cloud access; internal service/port enumeration via differing timeout/error behavior.
**Insight:** In Rust web frameworks, grep for early `return` on endpoint-dispatch paths that precede the central authorization call — endpoint handlers that take `for_agent: _` can never enforce per-agent access, so any outbound-fetch helper reachable there is pre-auth SSRF.

## Proof of concept (copied exactly from the original report)

**Unauthenticated SSRF requests to loopback and cloud metadata**

```
GET /bookmark?url=http://127.0.0.1:<internal-port>/&name=x        # internal loopback service
GET /bookmark?url=http://169.254.169.254/latest/meta-data/&name=x # IMDSv1 cloud metadata
```

