Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for xss file upload vulnerability #1476

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

ii5mai1
Copy link

@ii5mai1 ii5mai1 commented Nov 8, 2024

Summary:

This pull request addresses two security vulnerabilities:

  • IDOR Vulnerability: An IDOR vulnerability allows attackers to upload photos on behalf of any user by modifying the user parameter to another user's ID.

  • XSS Vulnerability via File Upload: Exploiting the IDOR vulnerability, an attacker can upload an HTML file as an admin. This introduces a potential cross-site scripting (XSS) vulnerability, which could lead to admin account takeover.

@derneuere
Copy link
Member

Looks good to me :)

@derneuere derneuere merged commit c80e102 into LibrePhotos:dev Nov 8, 2024
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.

2 participants