Cross-site Request Forgery (CSRF) Affecting archivy package, versions [,1.6.2)


Severity

0.0
medium
0
10

    Threat Intelligence

    EPSS
    0.07% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-ARCHIVY-2326695
  • published 26 Dec 2021
  • disclosed 26 Dec 2021
  • credit Scaramouche

How to fix?

Upgrade archivy to version 1.6.2 or higher.

Overview

archivy is a Minimalist knowledge base focused on digital preservation and building your second brain.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to missing CSRF token validation in /dataobj/delete/<int:dataobj_id>, which makes it possible to accept "GET" and "DELETE" methods instead of "POST" method.

POC:

  1. Create any note, get it's ID.
  2. Run page from PoC.html with concrete ID in your browser, click the button.
  3. Observe that the note with specified ID was deleted.
// PoC.html

<form action="http://127.0.0.1:5000/dataobj/delete/{yourNoteID}" method="GET"> <input type="submit" value="Click me"/> </form>

References

CVSS Scores

version 3.1
Expand this section

Snyk

4.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

4.3 medium