Unauthenticated go-httpbin servers : Leads to Cookie Tossing on *.aws.dev and Open Redirect
An unauthenticated go-httpbin instance on an aws.dev host let anyone set cookies scoped to the parent aws.dev domain and redirect to arbitrary external URLs. An attacker could plant cookies that sibling aws.dev applications receive, and crafted cookie values could trigger a WAF block that made another application unreachable for the victim.
Originally disclosed on HackerOne
- Fixed in 4 days
- Disclosed after 53 days
Description: The unauthenticated go-httpbin instance exposes multiple endpoints that accept attacker-controlled input without appropriate validation.
Two issues were identified:
- Cross-subdomain cookie tossing / cookie injection -
/cookies/setallows an unauthenticated user to specify an arbitrary cookieDomain, including the parentaws.devdomain. This allows attacker-controlled cookies set from one*.aws.devhost to be delivered to unrelated sibling applications. - Open redirect -
/redirect-toaccepts an arbitrary URL and redirects the victim to that destination without validation.
The cookie issue was verified against unrelated *.aws.dev applications. A crafted cookie value was also observed to cause a separate application at ████████ to receive a CloudFront/WAF 403 response, demonstrating a practical cross-tenant denial-of-service impact.
Endpoints:
████████
████████
████████
As an example, Impact was tested on ████████
Steps To Reproduce:
Open Redirect :
Observe the open redirect to arbitrary domains :
$ curl -s ████████redirect-to?url=http://google.com -D - -o /dev/null
HTTP/1.1 302 Found
Server: ████████
Date: Mon, 24 Aug 2026 21:27:43 GMT
Content-Length: 0
Connection: keep-alive
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Location: http://google.com
$
For Cookie Tossing / Cookie Injection :
- (Not related to vulnerable endpoint) First navigate to
████████to observe normal site behavior (401with login prompt)
████████
- Navigate to the following vulnerable URL to set the cookie
dos_poc=<script>alert(1)</script>on domainaws.dev:
████████cookies/set?dos_poc=<script>alert(1)</script>&attr[Domain]=aws.dev
████████
- As impact, observe the cookie set by
████████onaws.dev, triggers a WAF denial (on a single user) on████████
████████
Impact
Summary:
- Cross-subdomain cookie injection/tossing: Plant attacker-controlled cookies scoped to
*.aws.dev, causing them to be sent to unrelated sibling applications. - Denial of service: Crafted cookie values can trigger CloudFront/WAF filtering and make affected applications inaccessible to the victim.
- Potential cookie shadowing: Attacker-controlled cookies may interfere with security or application cookies used by sibling applications.
- Open redirect: Redirect users from a trusted
aws.devURL to an attacker-controlled external destination.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a publicly reachable go-httpbin instance whose cookie-setting and redirect endpoints accept attacker-controlled domain and URL parameters without validation.
Impact
Attacker-controlled cookies could reach unrelated sibling aws.dev applications, potentially shadowing their cookies, and crafted values could cause a CloudFront/WAF 403 that made one application inaccessible to the victim; the redirect could send users from a trusted aws.dev URL to an external site.
What the attacker needed
Go-httpbin reachable on an aws.dev host; victim visits the crafted URL; no authentication needed
How it was found
- Visit a sibling aws.dev application to see its normal 401 login prompt.
- Request the cookie-setting endpoint with a chosen cookie name and value plus a Domain attribute of aws.dev.
- Observe the cookie is set on aws.dev and that another aws.dev application returns a WAF 403 for that user.
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 report has not been written yet. The Original tab links to the source.
Cookies can be scoped to a whole domain, so a cookie set on one subdomain is also sent to other subdomains. A test tool left running on one subdomain let anyone create such cookies, so they could plant values that other sites on the same domain would trust or choke on. The same tool also forwarded visitors to any web address the attacker chose.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.