~/talk

What You Didn't Know About XML External Entities Attacks

Talkat AppSecUSA 2013 · 2013-11-20..11-21· [security]
links:none on file
slides:none on file

A concrete set of XXE exploits appears: parameter entities and DTD bootstrapping let attackers embed file contents or construct URLs, Java jar handler gives directory listings and can spool remote zips to disk (used as an upload primitive), and the gopher protocol can send raw TCP payloads to internal services to trigger Tomcat admin actions. The demo combines these to upload a WAR and achieve RCE on an older Tomcat/Java; limitations include phone‑home ability, XML well‑formedness rules, and quirks per parser. Advice: disable external entities, whitelist URL schemes, and preparse or block dangerous DTD syntax.

AI-written summary · about

  1. 0:00Start
  2. 3:22Point entity to local file or internal HTTP resource - Include entity inline in document - Application exposes the XML contents later
  3. 16:14Peek inside any ZIP file - Upload files (!)
  4. 17:11CSRF-like attacks on internal services - Port scanning - Exploiting secondary network vulnerabilities
  5. 22:36Public web app vulnerable to an XXE flaw
  6. 31:45Pre-parsing input validation - Block network egress
  7. 36:36Peek inside any ZIP file - Upload files (1)
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.