Add application-level path traversal section#825
Open
sudabg wants to merge 1 commit intoswisskyrepo:masterfrom
Open
Add application-level path traversal section#825sudabg wants to merge 1 commit intoswisskyrepo:masterfrom
sudabg wants to merge 1 commit intoswisskyrepo:masterfrom
Conversation
Covers Python and Node.js path traversal in filesystem operations (session IDs, filenames, usernames) with vulnerable and safe code patterns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a new Application-Level Path Traversal section to Directory Traversal, covering common patterns where user-controlled input (session IDs, usernames, filenames) is used in filesystem operations without validation.
What's Added
sendFileMotivation
The existing Directory Traversal section focuses on web/HTTP path traversal. This addition covers application-level path traversal — a common vulnerability in APIs and backend services where user input flows directly into filesystem operations like
Path / user_input,shutil.rmtree(),os.path.join(), orres.sendFile().The Python patterns are based on real fixes from production codebases.