November 2018
Beginner to intermediate
270 pages
7h 53m
English
On December 29th, 2014, a bug bounty hunter named Mohamed Ramadan found an XXE vulnerability in the Facebook Careers page.
If you remember, since Word's extension is .docx, Office documents are actually XML documents with a certain structure. Mohamed Ramadan included in the XML document a custom DTD.
A DTD is a structure that defines how the document is structured in terms of the order of appearance of the elements, attributes, entities, notes, the number of times that they appear, and which ones are children and parents, and so on. The real importance of the DTD is that the XML parser uses it to verify whether the document is valid or not.
So, Mohamed Ramadan uploaded a document, as follows:
<!DOCTYPE root [ <!ENTITY ...
Read now
Unlock full access