GitHub Advisoryadvisory · Packagist
GHSA-xx4r-5265-48j6 silverstripe/framework SQL injection in full text search
HIGH
Official page ↗
- Ecosystem
- Packagist
- Packages
- silverstripe/framework
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-89
- Reviewed
- 2024-05-27
Affected packages
• Packagist silverstripe/framework: >= 3.5.0-rc1, < 3.5.6 → fixed in 3.5.6
• Packagist silverstripe/framework: >= 3.6.0-rc1, < 3.6.3 → fixed in 3.6.3
• Packagist silverstripe/framework: >= 4.0.0-rc1, < 4.0.1 → fixed in 4.0.1
Description
When performing a fulltext search in SilverStripe 4.0.0 the 'start' querystring parameter is never escaped safely. This exposes a possible SQL injection vulnerability.
The issue exists in 3.5 and 3.6 but is less vulnerable, as SearchForm sanitises these variables prior to passing to mysql.
Related
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://github.com/silverstripe/silverstripe-framework/commit/099a5a3c2d99ed39bdd8815e1e2790bb9351770b web
- https://github.com/silverstripe/silverstripe-framework/commit/a8465900bdc77199176c953890ce7587045b1ea4 web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2017-008-1.yaml web
- https://github.com/silverstripe/silverstripe-framework package
- https://www.silverstripe.org/download/security-releases/ss-2017-008 web