Skip to content

fix(security): Directory traversal#744

Merged
j2rong4cn merged 3 commits intoOpenListTeam:mainfrom
hshpy:fix3
Jul 22, 2025
Merged

fix(security): Directory traversal#744
j2rong4cn merged 3 commits intoOpenListTeam:mainfrom
hshpy:fix3

Conversation

@hshpy
Copy link
Copy Markdown
Contributor

@hshpy hshpy commented Jul 17, 2025

拥有上传和重命名权限等于拥有上传任意文件到任意位置,受到影响驱动local,smb等,网盘不受影响。

@SenkjM SenkjM requested a review from Copilot July 17, 2025 14:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a critical directory traversal security vulnerability in the file rename functionality. The vulnerability allowed users with upload and rename permissions to upload arbitrary files to arbitrary locations on local and SMB drives.

  • Adds validation to prevent path separators in rename operations
  • Prevents directory traversal attacks through filename manipulation
  • Affects local and SMB drivers while cloud storage remains unaffected

@j2rong4cn j2rong4cn merged commit bba4fb2 into OpenListTeam:main Jul 22, 2025
12 checks passed
@hshpy hshpy deleted the fix3 branch July 22, 2025 08:59
@hshpy hshpy mentioned this pull request Jul 25, 2025
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