Skip to content

In-depth lesson · XXE

Tips for beginners

Every point the XXE reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 12 of 12
  1. Start with features that obviously parse XML: SOAP endpoints, SAML response parameters, sitemap and RSS crawlers, search ingest APIs and login endpoints that accept XML bodies. Then widen to uploads that contain XML, such as XLSX, XLF, WAV, JPEG and SVG, because the parser is often hidden behind the file type.

    Seen in 15 reports
  2. Report the parser setting and the fix, not just the payload. The strongest reports explain that external entity resolution and DTD processing were enabled, show the evidence of resolution, and note the standard remediation of disabling both. This helps triage and shows you understand the root cause.

    Seen in 8 reports
  3. Use a host you control to watch for callbacks, and have a fallback ready. If HTTP callbacks are blocked, try other protocols, error-based techniques or PHP stream wrappers where the stack allows it. The evidence shows all of these being used when the simple channel failed.

    Seen in 5 reports
  4. Prove impact with the smallest possible read. A single local file that is clearly sensitive, such as a configuration file, is enough to demonstrate the flaw. Do not go hunting through the filesystem for trophies; that increases risk and adds nothing to the report.

    Seen in 5 reports
  5. On cloud-hosted targets, a confirmed file read can often be extended to the metadata service to show credential exposure. Treat this as a separate, higher-impact step and only take it if the programme permits it. The same caution applies to UNC paths that capture NTLM hashes on Windows hosts.

    Seen in 4 reports
  6. Before sending anything, confirm the feature is in scope and that you are allowed to make outbound requests from the target. A blind XXE test causes the server to contact a host you control, which some programmes treat as prohibited or rate-limited. Read the policy first; reporting an out-of-scope callback is a common beginner mistake.

    Seen in 2 reports
  7. If the response does not show the resolved content, look for a second place it might appear. Stored XXE output has been found rendered on a different page or export, sometimes without access control. Check dashboards, previews and exports after submitting.

    Seen in 2 reports
  8. Test the parser, not just the endpoint. A previous fix may not have fully blocked external entity resolution, so retest after a patch. The evidence includes a case where blind XXE still worked after a fix, and a filter bypass using a double forward slash in an SVG attribute.

    Seen in 2 reports
  9. Do not confuse XML injection with XXE. Endpoints that build XML from user input can be vulnerable to element or attribute injection, which is a different bug with a different fix. Test for both, but describe which one you found and why it matters.

    Seen in 2 reports
  10. Remember that not every XXE report is paid. The database shows 97 reports but only 8 paid, so set expectations and focus on clear, reproducible impact. A blind callback with no demonstrated consequence is weaker than a file read or a credential exposure.

    Seen in 2 reports
  11. Watch for client-side validation that can be bypassed. A client-supplied file type list in an upload form is not a security control; adding extra types such as XML or HTML to it has been used to get files past validation. If you find this, report the server-side gap rather than just the upload.

    Seen in 1 report
  12. Practise on CTF challenges before touching a live target. The evidence includes CTF exercises specifically for XXE, and they let you learn the mechanics of DTDs, entities and out-of-band channels without risking a real programme.

    Seen in 1 report