CVE Vulnerabilities

CVE-2022-24880

Incorrect Check of Function Return Value

Published: Apr 25, 2022 | Modified: Nov 21, 2024
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
Ubuntu
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.

Affected Software

NameVendorStart VersionEnd Version
Flask-session-captchaFlask-session-captcha_project*1.2.1 (excluding)

Potential Mitigations

References