Module 5 XML External Entities (XXE) Lab: Brought To You by
Module 5 XML External Entities (XXE) Lab: Brought To You by
Module 5 XML External Entities (XXE) Lab
Description: In this lab, you will identify and exploit simple examples of XXE in a web
application. Entities in XML documents allow a developer to break the document into parts,
which makes it more modular. If a user is allowed to influence the declaration of these
entities, it might allow the user to access files that they would not normally have access to.
Requirements: You will need access to the Cybrary lab environment for this lab.
Brought to you by: Develop your team with the fastest growing catalog in the
cybersecurity industry. Enterprise-grade workforce development
management, advanced training features and detailed skill gap and
competency analytics.
1
Question 1: Do you see the contents of the /etc/passwd file after running the command?
_____________________________________________________________________
Note: Assuming we know more file paths on the server, we could use the command to
views those files. However, since we are passing data through the XML parser, we are
unable to pass XML, HTML, or binary data without it giving us an error message.
Brought to you by: Develop your team with the fastest growing catalog in the
cybersecurity industry. Enterprise-grade workforce development
management, advanced training features and detailed skill gap and
competency analytics.
2