Advisory

GHSA-mg4x-prh7-g4mx

Also known as: None

Summary

Zend-Captcha Information Disclosure and Insufficient Entropy vulnerability

Details

In Zend Framework, Zend_Captcha_Word (v1) and Zend\Captcha\Word (v2) generate a "word" for a CAPTCHA challenge by selecting a sequence of random letters from a character set. Prior to this advisory, the selection was performed using PHP's internal array_rand() function. This function does not generate sufficient entropy due to its usage of rand() instead of more cryptographically secure methods such as openssl_pseudo_random_bytes(). This could potentially lead to information disclosure should an attacker be able to brute force the random number generation.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-06-07 22:25 UTC
Modified
2024-12-04 05:36 UTC

Affected packages and fixes

zendframework/zend-captcha

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.4.9 (ecosystem)

Fixed versions

2.4.9

Fix

The export has no generic command for this ecosystem.

zendframework/zend-captcha

Packagist · All systems

Affected

  • introduced 2.5.0, fixed 2.5.2 (ecosystem)

Fixed versions

2.5.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences