PortSwigger
CompanySecurity timeline
- Vulnerability reported by InfoSec Write-upsXXE chained to SSRF used to fetch EC2 metadata and expose IAM keys in PortSwigger lab
Loading this page…
The author used Burp Suite Intruder with a supplied username wordlist and a Sniper attack to find a username, because the application returned "Invalid username" for most attempts and "Incorrect password" for one. A second Sniper attack on the password field found one request returning 302 Found instead of 200 OK, indicating successful login. The fix is consistent error messages, response lengths and status codes for all authentication failures.
The article demonstrates chaining an XML External Entity (XXE) vulnerability into a Server-Side Request Forgery (SSRF) to force the target server to query the EC2 metadata endpoint at 169.254.169.254. The server returned role credentials — AccessKeyId, SecretAccessKey and Token — and the author recommends disabling DTDs and external entity resolution or switching to JSON to prevent this class of attack.
PortSwigger Research describes escalating HTTP header injection into a CRLF-powered desync, which it says can be used to serve random users a redirect to an attacker's collaborator server. The article says this can be done in a single prompt. PortSwigger has introduced a new scan check to detect the issue, but the excerpt is cut off before further technical detail.