CVEvulnerability

CVE-2022-24880

5.3 MEDIUM Published 2022-04-25 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2022-04-25
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 3.1 ([email protected])
5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.0 ([email protected])
5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:P/A:N
Weaknesses
CWE-253, CWE-394, CWE-754

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 configurations

• flask-session-captcha project flask-session-captcha (< 1.2.1)

Related

Weakness · CWE (3)

  • CWE-253 Incorrect Check of Function Return Value weakness
  • CWE-394 Unexpected Status Code or Return Value weakness
  • CWE-754 Improper Check for Unusual or Exceptional Conditions weakness

References