mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 03:55:58 +03:00
[PR #301] [MERGED] Security Fix for XSS - huntr.dev #575
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#575
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/ciur/papermerge/pull/301
Author: @huntr-helper
Created: 2/9/2021
Status: ✅ Merged
Merged: 2/9/2021
Merged by: @ciur
Base:
stable/1.5.x← Head:stable/1.5.x📝 Commits (3)
5d90f1eescape html entities in script337141descape html entities in db0a0c803Merge pull request #1 from d3v53c/stable/1.5.x📊 Changes
2 files changed (+25 additions, -2 deletions)
View changed files
📝
papermerge/contrib/admin/static/admin/js/papermerge.debug.js(+14 -1)📝
papermerge/core/views/metadata.py(+11 -1)📄 Description
@d3v53c (https://huntr.dev/users/d3v53c) 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/papermerge/pull/1
Vulnerability README | https://github.com/418sec/huntr/blob/master/bounties/pip/papermerge/1/README.md
User Comments:
📊 Metadata *
Papermergeis an open source document management system (DMS) primarily designed for archiving and retrieving your digital documents. Instead of having piles of paper documents all over your desk, office or drawers - you can quickly scan them and configure your scanner to directly upload to Papermerge DMS.. This package is vulnerable for (XSS).https://github.com/ciur/papermerge https://pypi.org/project/papermerge/Bounty URL: https://www.huntr.dev/bounties/1-pip-papermerge/
⚙️ Description *
Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.
💻 Technical Description *
Cross-Site Scripting (XSS) attacks are mitigated by sanitizing the user inputs before rendering, thereby preventing malicious execution.
🐛 Proof of Concept (PoC) *
🔥 Proof of Fix (PoF) *
Before:
https://drive.google.com/file/d/1AovUz4yG46RRVCRlohd1-YyTlO_edEKg/view?usp=sharingAfter:

👍 User Acceptance Testing (UAT)
After the fix, functionality is unaffected
🔗 Relates to...
https://github.com/418sec/huntr/pull/1490/files
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.