CVE-2021-4162: archivy is vulnerable to Cross-Site Request Forgery (CSRF)
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.28214%
CWE
Published
1/6/2022
Updated
9/12/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
archivy | pip | < 1.6.2 | 1.6.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key issues: 1) The delete endpoint used unsafe HTTP methods (GET/DELETE) without CSRF protection, allowing trivial CSRF exploitation. 2) Form handling in click_web
didn't validate()
CSRF tokens, enabling forged requests. The patch added CSRFProtect
middleware, restricted deletion to POST
, and implemented token validation in forms.