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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | flask-session-captcha | 1.2.1 | GHSA-7r87-cj48-wj45 |
| PyPI | flask-session-captcha | 1.2.1 | PYSEC-2022-193 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/Tethik/flask-session-captcha/security/advisories/GHSA-7r87-cj48-wj45 x_refsource_CONFIRM
- https://github.com/Tethik/flask-session-captcha/pull/27 x_refsource_MISC
- https://github.com/Tethik/flask-session-captcha/commit/2811ae23a38d33b620fb7a07de8837c6d65c13e4 x_refsource_MISC
- https://github.com/Tethik/flask-session-captcha/releases/tag/v1.2.1 x_refsource_MISC