Hands-On Application Penetration Testing with Burp Suite
by Carlos A. Lozano, Dhruv Shah, Riyaz Ahemed Walikar
Bypassing type restrictions
When an application allows you to upload files, usually the developer knows what types of files are allowed, so it is important to validate that a malicious user cannot upload other kinds of files. The common way to validate this is by using the extension file. So, if an application manages documents, maybe the developer allows PDF files and DOCX documents, but is this secure?
The file extension is not the only validation that the application needs to undertake. A malicious user can upload a malicious file with a valid extension; for example, to propagate malware.
First, we are going to create a malicious PDF using a tool called Metasploit. Metasploit is an exploitation framework that allows attack vulnerabilities, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access