Vulnerability · Published Apr 25, 2022 · Assigned by GitHub_M

CVE-2022-24880Potential Captcha Validate Bypass in flask-session-captcha

Medium 5.3

In plain English

A medium-severity security flaw in flask-session-captcha from Tethik. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.2%top 31.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

flask-session-captcha is a package which allows users to extend Flask by adding an image based captcha stored in a server side session. In versions prior to 1.2.1, he `captcha.validate()` function would return `None` if passed no value (e.g. by submitting an having an empty form). If implementing users were checking the return value to be **False**, the captcha verification check could be bypassed. Version 1.2.1 fixes the issue. Users can workaround the issue by not explicitly checking that the value is False. Checking the return value less explicitly should still work.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIflask-session-captcha1.2.1GHSA-7r87-cj48-wj45
PyPIflask-session-captcha1.2.1PYSEC-2022-193

Affected products (as reported)

VendorProductVersions
Tethik flask-session-captcha < 1.2.1

Weakness: CWE-253, CWE-394, CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References