Test File Access Control
When testing a web application for path traversal vulnerabilities, first determine if user input can control the file path. Look for features that load files, such as images or reports, and check if the file path can be influenced through parameters like file=, page=, or doc=. If the path is hard-coded, it's not vulnerable to path traversal. If user input can control the file path, try simple traversal sequences like ../ to see if you can escape the intended directory. If the application rejects your input, try variations like URL encoding (..%2f), double encoding (%252e%252e%252f), or mixed separators (../ or ..\) to test the filters. Once you've confirmed path traversal, focus on demonstrating impact by accessing files with real security value, such as configuration files or credentials.
Follow #file-inclusion or #path-traversal for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.