Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BELOW IS MY FIRST E-MAIL
- TITLE: Potential directory traversal vulnerability (security issue report)
- Hi, I am WONG. While working with the REDACTED2 AI assistant in REDACTED1 IDE on January 25, 2025, I discovered a potential directory traversal vulnerability that allows access beyond the intended workspace directory.
- Type of issue:
- Directory Traversal / Path Traversal vulnerability in the list_dir tool implementation
- Location of affected source code:
- The list_dir tool in REDACTED1 IDE's AI assistant functionality
- Special configuration:
- - REDACTED1 IDE
- - Working in a specific workspace (d:/rtrw)
- - Chat session with AI assistant at approximately 14:36-15:04 ICT (UTC+7)
- - I have not checked checkboxes or changed any REDACTED1 preference related to giving REDACTED1 any control or view permission more than the particular development folder(s) that I happened to work in
- Step-by-step reproduction:
- 1. Open REDACTED1 IDE
- 2. Share a specific workspace (in this case: d:/rtrw)
- 3. Start a conversation with the AI assistant
- 4. The vulnerability was exposed when the AI assistant was able to execute list_dir on "d:/" at 14:37:39 ICT
- 5. The tool successfully returned contents of directories outside the workspace:
- - Listed contents of d:/
- - Listed contents of d:/foldername1
- - Listed contents of d:/foldername2
- These commands were executed at timestamps:
- - First access: 2025-01-25T14:37:39+07:00
- - Second access: 2025-01-25T14:39:18+07:00
- Proof-of-concept:
- The AI assistant was able to execute:
- <invoke name="list_dir">
- <parameter name="DirectoryPath">d:/</parameter>
- </invoke>
- And successfully received directory contents outside the workspace scope.
- Impact:
- This vulnerability could potentially allow:
- 1. Enumeration of directory structures outside the intended workspace
- 2. Information disclosure of sensitive file and folder names
- 3. Potential path to more serious vulnerabilities if combined with other tools
- 4. Privacy concerns as my other directory names were exposed
- The vulnerability appears to be in the implementation of the list_dir tool, which doesn't properly restrict directory access to the workspace boundary. While in this case it only allowed listing directory contents, this could potentially be combined with other tools or future capabilities to access files outside the intended scope.
- Additional Information:
- - The AI assistant recognized this as unexpected behavior
- - The tool should have been restricted to only access directories within d:/foldername1
- - The vulnerability was discovered during a legitimate attempt to help locate CodeIgniter installation files
- - No actual file contents outside the workspace were accessed, only directory listings were exposed, but this is theoretically very much possible
- -----------------------
- BELOW IS MY SECOND E-MAIL
- Follow-up: Critical Directory Access Security Issue (further finding)
- Dear REDACTED2/REDACTED1 Team,
- Following my January 25 report, I want to share my second finding from additional testing (January 26, 19:22-19:35 ICT). I've reviewed both REDACTED1 settings and docs.REDACTED2.com, and after doing so, the security implications appear even more alarming.
- Timeline of Further Finding:
- 1. 19:22 ICT - Re-confirmed: All filesystem tools can traverse outside workspace boundaries
- 2. 19:32 ICT - Crucial discovery: Issue persists with Workspace Trust explicitly disabled (from REDACTED1's Settings)
- 3. 19:35 ICT - Systematic testing shows all filesystem tools affected:
- - list_dir
- - view_file
- - grep_search
- - find_by_name
- - codebase_search (targeting capability)
- Technical Severity:
- 1. No workspace boundary enforcement at tool implementation level
- 2. Independent of all trust settings and configurations
- 3. Affects entire filesystem tool suite
- 4. No documented controls or restrictions found in settings/documentation
- 5. Reproducible in default configuration, no special permissions
- Given the potential security implications, especially for my (individual user) environment, I'm resending both my first and second finding.
- Further requests/note:
- 1. Privacy assurance and data usage. I would like to request that REDACTED2 strictly respect my privacy and ensure that any data, logs, or interaction traces related to this investigation are used only as needed for the purpose of resolving the issue.
- 1. It's actually fine if no compensation is offered, as I noticed that bug bounties aren't mentioned in the documentation as per the Reporting Security docs, however, I do hope there's still a possibility of some form of compensation anyway, as I live in a non-developed country and would genuinely appreciate any financial assistance because it would greatly help with everything. Regardless, I would appreciate a reply regarding the progress of the investigation, considering the severity of the issue.
- Warm regards,
- WONG
Advertisement
Add Comment
Please, Sign In to add comment