Cve 2021 26215
SeedDMS 5.1.x lacks CSRF protection in out.EditDocument.php, allowing an attacker to edit a victim's documents by tricking them into submitting a crafted form. The attacker must host the HTML and send the link to the victim.
Published on systemweakness.com
SeedDMS 5.1.x is affected by cross-site request forgery (CSRF) in out.EditDocument.php that allows an attacker to edit victim’s documents. To exploit this vulnerability, an attacker has to host the html code in his server and send the link to victim.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application does not use anti-CSRF tokens or validate the request origin for the document editing action.
Impact
An attacker could edit a victim's documents if the victim visits the attacker's link while logged in.
What the attacker needed
Victim is logged in; victim clicks a link
How it was found
- Go to the My Documents page.
- Click Edit on any document.
- Enter valid name, comment, keyword, categories and other details.
- Save and capture the request using Burpsuite.
- Generate a CSRF proof-of-concept from the request.
- Save the HTML as csrf.html on your server, modify the fields, and open it to submit.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Cross-site request forgery (CSRF) is when a malicious website makes a logged-in user's browser send a request to another site without the user's knowledge. Here, the document editing page does not check that the request came from the legitimate site, so an attacker can create a form that changes document details and trick the victim into submitting it.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.