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


0.0
medium

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.08% (34th percentile)
Expand this section
NVD
5.3 medium

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 ID SNYK-PYTHON-FLASKSESSIONCAPTCHA-2803309
  • published 26 Apr 2022
  • disclosed 26 Apr 2022
  • credit Guillaume Gomez

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