mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[PR #511] [MERGED] Security Fix for XSS - huntr.dev #997
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#997
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/prasathmani/tinyfilemanager/pull/511
Author: @huntr-helper
Created: 3/22/2021
Status: ✅ Merged
Merged: 3/22/2021
Merged by: @prasathmani
Base:
master← Head:1-other-tinyfilemanager📝 Commits (2)
b5e2509Fixed 3 sinks which caused XSS in filename221c92cMerge pull request #1 from purecarnage/fix-xss-in-filename📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
tinyfilemanager.php(+3 -3)📄 Description
@purecarnage (https://huntr.dev/users/purecarnage) has fixed a potential XSS vulnerability in your repository 🔨. For more information, visit our website (https://huntr.dev/) or click the bounty URL below...
Q | A
Version Affected | *
Bug Fix | YES
Original Pull Request | https://github.com/418sec/tinyfilemanager/pull/1
If you are happy with this disclosure, we would love to get a CVE assigned to the vulnerability. Feel free to credit @purecarnage, the discloser found in the bounty URL (below) and @huntr-helper.
User Comments:
📊 Metadata
Bounty URL: https://www.huntr.dev/bounties/1-other-tinyfilemanager/
⚙️ Description
An XSS vulnearbility was reported in huntr.dev at the link given above.
This was fixed by using
fm_enc()function to encode html characters.💻 Technical Description
The issue was caused at three locations (sinks). The fix was simple, wrap the output string with
fm_enc()🐛 Proof of Concept (PoC)
"><img src=x onerror=alert(222)>.png.Here's a GIF by the reporter: https://drive.google.com/file/d/1t2afWVrLu_mb_S69n6d4SbLHOziuEeuZ/view?usp=sharing
🔥 Proof of Fix (PoF)
I've replayed the same payload, it will not pop an alert box as before.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.