Skip to content

Conversation

@watany-dev
Copy link
Owner

Add comprehensive tests for symlink traversal attack patterns in
ValidatePathWithSymlinkResolution. These tests cover attack vectors
that were not previously tested:

  • Relative symlinks with parent traversal (../outside/secret.txt)
  • Absolute symlinks to system paths (/etc, /tmp)
  • Nested symlinks in subdirectories escaping via multiple ../
  • Symlink directory traversal via intermediate paths
  • Symlinks pointing to parent directory (..)
  • Triple and deeply chained symlinks (5 levels)
  • Symlink loops (circular references)
  • Mixed path traversal and symlink attacks
  • Disguised symlink traversal with innocent-looking names

Add comprehensive tests for symlink traversal attack patterns in
ValidatePathWithSymlinkResolution. These tests cover attack vectors
that were not previously tested:

- Relative symlinks with parent traversal (../outside/secret.txt)
- Absolute symlinks to system paths (/etc, /tmp)
- Nested symlinks in subdirectories escaping via multiple ../
- Symlink directory traversal via intermediate paths
- Symlinks pointing to parent directory (..)
- Triple and deeply chained symlinks (5 levels)
- Symlink loops (circular references)
- Mixed path traversal and symlink attacks
- Disguised symlink traversal with innocent-looking names
@watany-dev watany-dev merged commit 23ec6d2 into main Dec 28, 2025
4 checks passed
@watany-dev watany-dev deleted the claude/add-symlink-traversal-tests-ERDsy branch December 28, 2025 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants