CVE-2012-20007
>_ Opis
Tłumaczenie automatyczne – może zawierać nieścisłości.
Tryb ThinkPHP 2.0 do 2.2 i 3.0 Lite zawiera lukę w zabezpieczeniach polegającą na wstrzykiwaniu eval w analizie Dispatcher PATH_INFO, która wykorzystuje preg_replace z modyfikatorem /e i zamianą w podwójnym cudzysłowie. Nieuwierzytelnieni napastnicy mogą wysyłać spreparowane żądania do pliku Index.php ze złośliwym parametrem „s” zawierającym wyrażenia PHP w celu wykonania dowolnego kodu na serwerze. Dowody wykorzystania zostały po raz pierwszy zaobserwowane przez Shadowserver Foundation 14.10.2023 r.
>_ Słabości (CWE)
>_ Referencje
- http://web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml
- https://github.com/vulhub/vulhub/tree/master/thinkphp/2-rce
- https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info
Dane podatności pochodzą z oficjalnych źródeł (CVE® List / NVD). Opisy po polsku są tłumaczone automatycznie i mogą zawierać nieścisłości – na stronie rekordu można wyświetlić wersję angielską.
This product uses the NVD API but is not endorsed or certified by the NVD.
Copyright © 1999–2026, The MITRE Corporation. CVE is a registered trademark and the CVE logo is a registered trademark of The MITRE Corporation.
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. ALL DOCUMENTS AND THE INFORMATION CONTAINED THEREIN PROVIDED BY MITRE ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
NVD Terms of Use / CVE® Terms of Use / nvd.nist.gov / cve.org