XXE chained to SSRF used to fetch EC2 metadata and expose IAM keys in PortSwigger lab
Compiled by RedTeamDaily · AI-assisted summaries · Human review not recorded for this version
Published
What happened
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.
For IT people · Written by AI from 1 source · Report an error
- Sources
- 1
Sources and verification
Sources and editorial review
No named human review has been recorded for this story. See the source evidence below.
No vendor or government source is linked to this story yet. Read the source reports; attribution is not independent verification.
How severity and exploitation labels work · All source reports · Report an error
What to do
- Disable Document Type Definitions (DTDs) and external entity resolution completely in your XML parser configuration.
- Switch to a safer data format such as JSON where possible.
Written by AI from the sources, checked against them
Source timeline (UTC) · 1 update
Explore this report
Ask AI about this story
Optional follow-up answers generated from our coverage. Check the linked sources before acting.
Ask your own questionWho and what is in it
Companies
Products