CVE-2021-44567: SQL injection in francoisjacquet/rosariosis
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.82646%
CWE
Published
2/25/2022
Updated
2/3/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
francoisjacquet/rosariosis | composer | < 7.6.1 | 7.6.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how PortalPollsVote() directly uses $poll_id (derived from $_POST['votes'] array keys) in SQL queries without proper sanitization. The foreach loop in PortalPollsNotes.fnc.php processes raw POST parameters, and the parameter keys are never passed through DBEscapeString sanitization that only acts on $_REQUEST values. This allows attackers to control the poll_id parameter in SQL context. The function signature and injection vector are explicitly described in the GitLab issue #308 reproduction steps and code analysis.