cwe-22-path-traversal
OfficialPrevent Path Traversal vulnerabilities.
AuthorDevelopersCoffee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses and remediates CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal vulnerabilities in Java applications, preventing unauthorized access to sensitive files.
Core Features & Use Cases
- Vulnerability Identification: Detects patterns indicative of path traversal risks in file access operations.
- Deterministic Remediation: Provides specific code transformations to secure file path handling.
- Use Case: When a SAST tool flags a potential path traversal vulnerability in a file download endpoint, this skill can be applied to automatically refactor the code to safely handle file paths.
Quick Start
Use the cwe-22-path-traversal skill to secure the file access logic in the provided Java code snippet.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cwe-22-path-traversal Download link: https://github.com/DevelopersCoffee/java-cwe-security-skills/archive/main.zip#cwe-22-path-traversal Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.