Access Restriction Bypass Affecting flask-session-captcha package, versions [,1.2.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.24% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-FLASKSESSIONCAPTCHA-2803309
  • published26 Apr 2022
  • disclosed26 Apr 2022
  • creditGuillaume Gomez

Introduced: 26 Apr 2022

CVE-2022-24880  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade flask-session-captcha to version 1.2.1 or higher.

Overview

flask-session-captcha is a Captcha implementation for flask and flask-session.

Affected versions of this package are vulnerable to Access Restriction Bypass by manipulating the captcha.validate() to return False, in that way the captcha verification check will be bypassed.

PoC:

if captcha.validate() == False:
    ... # abort
else:
   ... # do stuff

CVSS Base Scores

version 3.1