Skip to content
CSRF Write-up Beginner

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.

Tuhin Bose Follow

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.

Tuhin Bose, on systemweakness.com

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

  1. Go to the My Documents page.
  2. Click Edit on any document.
  3. Enter valid name, comment, keyword, categories and other details.
  4. Save and capture the request using Burpsuite.
  5. Generate a CSRF proof-of-concept from the request.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.