VDB
Sign up
MEDIUM5.3

GHSA-5mmw-p5qv-w3x5

Always incorrect control flow in github.com/mojocn/base64Captcha

Quick fix

GHSA-5mmw-p5qv-w3x5 — github.com/mojocn/base64Captcha: upgrade to the fixed version with the command below.

go get github.com/mojocn/base64Captcha@v1.3.6

Details

When using the default implementation of Verify to check a Captcha, verification can be bypassed. For example, if the first parameter is a non-existent id, the second parameter is an empty string, and the third parameter is true, the function will always consider the Captcha to be correct.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/mojocn/base64Captcha
Introduced in: 0Fixed in: 1.3.6
Fixgo get github.com/mojocn/base64Captcha@v1.3.6

References