#VU54555 Cross-site request forgery in FastAPI


Published: 2021-07-05

Vulnerability identifier: #VU54555

Vulnerability risk: Medium

CVSSv3.1: 5.3 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-32677

CWE-ID: CWE-352

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
FastAPI
Web applications / CMS

Vendor: FastAPI Project

Description

The vulnerability allows a remote attacker to perform cross-site request forgery attacks.

The vulnerability exists due to insufficient validation of the HTTP request origin. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website, such as act as a mitigating workaround.

Mitigation
Install update from vendor's website.

Vulnerable software versions

FastAPI: 0.1.11 - 0.65.1


External links
http://github.com/tiangolo/fastapi/commit/fa7e3c996edf2d5482fff8f9d890ac2390dede4d
http://github.com/tiangolo/fastapi/security/advisories/GHSA-8h2j-cgx8-6xv7
http://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MATAWX25TYKNEKLDMKWNLYDB34UWTROA/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability