12/9/2022 - THM Auth Bypass, Logic Flaw, Cookies, IDOR Flashcards
What is Directory Traversal attack?
Using web app user inputs to traverse web server
Types of File Inclusion
Remote FI
Local FI
What PHP functions does Local FI leverage?
Include
Require
include_once
require_once
What is IDOR
Insecure Direct Object Reference:
Access control vulnerability that is supplied by user to access resources
Example(s) of IDOR
Viewing online (profiles, orders, policy, etc..) by switching user_id
Create two accounts on the same website and swap IDs
How can IDORs be Obfuscated?
What two key areas are they usually found in?
Base64 Encoding (Obfuscation)
Hashed IDs (Obfuscation)
AJAX requests
Cookies
What are mitigation techniques against Directory Traversal Attacks
Keep systems patched
Turn off PHP errors to prevent revealing sensitive system info
WAFs
Disable PHP features that cause file inclusion (ie allow_url_fopen, allow_url_include)
Input Validation
Implement whitelisting and blacklisting of filenames and locations