CVE-2021-46398
published 2022-02-04CVE-2021-46398: A Cross-Site Request Forgery vulnerability exists in Filebrowser < 2.18.0 that allows attackers to create a backdoor user with admin privilege and get access…
PriorityP258high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
6.66%
93.1th percentile
A Cross-Site Request Forgery vulnerability exists in Filebrowser < 2.18.0 that allows attackers to create a backdoor user with admin privilege and get access to the filesystem via a malicious HTML webpage that is sent to the victim. An admin can run commands using the FileBrowser and hence it leads to RCE.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| filebrowser | filebrowser | < 2.18.0 | 2.18.0 |
| github.com | filebrowser_filebrowser_v2 | >= 0 < 2.18.0 | 2.18.0 |
Detection & IOCsextracted from sources · hover to see the quote
cookieauth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoxLCJsb2NhbGUiOiJlbiIsInZpZXdNb2RlIjoibW9zYWljIiwic2luZ2xlQ2xpY2siOmZhbHNlLCJwZXJtIjp7ImFkbWluIjp0cnVlLCJleGVjdXRlIjp0cnVlLCJjcmVhdGUiOnRydWUsInJlbmFtZSI6dHJ1ZSwibW9kaWZ5Ijp0cnVlLCJkZWxldGUiOnRydWUsInNoYXJlIjp0cnVlLCJkb3dubG9hZCI6dHJ1ZX0sImNvbW1hbmRzIjpbXSwibG9ja1Bhc3N3b3JkIjpmYWxzZSwiaGlkZURvdGZpbGVzIjpmYWxzZX0sImV4cCI6MTY0NDA4OTE3MiwiaWF0IjoxNjQ0MDgxOTcyLCJpc3MiOiJGaWxlIEJyb3dzZXIifQ.hdFWg3SIQQ-4P8K48yru-152NGItZPKau6EBL6m8RJE↗
command{"what":"user","which":[],"data":{"scope":"../../../../root/","locale":"en","viewMode":"mosaic","singleClick":false,"sorting":{"by":"","asc":false},"perm":{"admin":true,"execute":true,"create":true,"rename":true,"modify":true,"delete":true,"share":true,"download":true},"commands":[],"hideDotfiles":false,"username":"pwned","password":"","rules":[{"allow":true,"path":"../","regex":false,"regexp":{"raw":""}}],"lockPassword":false,"id":0,"password":"pwned"}}=test↗
- →Alert on cross-site POST requests to /api/users where Sec-Fetch-Site is 'cross-site' and Sec-Fetch-Mode is 'navigate', indicating a CSRF-driven user creation attempt. ↗
- →Flag POST /api/users payloads containing 'admin':true and 'execute':true in the perm object, especially when submitted with Content-Type: text/plain — this indicates backdoor admin account creation. ↗
- →Detect directory traversal sequences (e.g., ../../../../) in the 'scope' field of POST /api/users requests, indicating an attempt to grant a new user access to sensitive filesystem paths such as /root/. ↗
- →Monitor for new user creation via /api/users where the username is a known attacker-controlled value (e.g., 'pwned') and the rules array contains path traversal entries like '../'. ↗
- ·FileBrowser's admin command execution capability is what elevates this CSRF to full RCE — any deployment where admin users can run commands is at maximum risk. ↗
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Cross-Site Request Forgery in Filebrowser
osv·2022-02-05
CVE-2021-46398 [HIGH] Cross-Site Request Forgery in Filebrowser
Cross-Site Request Forgery in Filebrowser
A Cross-Site Request Forgery (CSRF) vulnerability exists in Filebrowser < 2.18.0 that allows attackers to create a backdoor user with admin privilege and get access to the filesystem via a malicious HTML webpage that is sent to the victim.
GHSA
Cross-Site Request Forgery in Filebrowser
ghsa·2022-02-05
CVE-2021-46398 [HIGH] CWE-352 Cross-Site Request Forgery in Filebrowser
Cross-Site Request Forgery in Filebrowser
A Cross-Site Request Forgery (CSRF) vulnerability exists in Filebrowser < 2.18.0 that allows attackers to create a backdoor user with admin privilege and get access to the filesystem via a malicious HTML webpage that is sent to the victim.
OSV
Cross-site request forgery in github.com/filebrowser/filebrowser/v2
osv·2022-02-05
CVE-2021-46398 Cross-site request forgery in github.com/filebrowser/filebrowser/v2
Cross-site request forgery in github.com/filebrowser/filebrowser/v2
A Cross-Site Request Forgery vulnerability exists in Filebrowser that allows attackers to create a backdoor user with admin privilege and get access to the filesystem via a malicious HTML webpage that is sent to the victim.
No detection rules found.
No writeups or analysis indexed.
http://packetstormsecurity.com/files/165885/FileBrowser-2.17.2-Code-Execution-Cross-Site-Request-Forgery.htmlhttps://febin0x4e4a.blogspot.com/2022/01/critical-csrf-in-filebrowser.htmlhttps://febin0x4e4a.wordpress.com/2022/01/19/critical-csrf-in-filebrowser/https://febinj.medium.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7https://github.com/filebrowser/filebrowser/commit/74b7cd8e81840537a8206317344f118093153e8dhttps://systemweakness.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7http://packetstormsecurity.com/files/165885/FileBrowser-2.17.2-Code-Execution-Cross-Site-Request-Forgery.htmlhttps://febin0x4e4a.blogspot.com/2022/01/critical-csrf-in-filebrowser.htmlhttps://febin0x4e4a.wordpress.com/2022/01/19/critical-csrf-in-filebrowser/https://febinj.medium.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7https://github.com/filebrowser/filebrowser/commit/74b7cd8e81840537a8206317344f118093153e8dhttps://systemweakness.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7
2022-02-04
Published