NukeViet CMSで画像アップロードの制限を回避され遠隔からコマンドを実行される脆弱性
Summary
NukeViet CMSには、画像アップロードの検査をすり抜けてPHPコードを保存させ、Webサーバーの権限でOSコマンドを実行されるおそれのある脆弱性が見つかりました。4.5.12と4.6.02より前の版が対象で、4.5.12と4.6.02で修正されています。Apache mod_phpでshort_open_tagなどが有効な環境で影響するとされているため、該当する版を使っている場合は修正版への更新を急いでください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
NukeViet CMSには、画像アップロードの検査をすり抜けてPHPコードを保存させ、Webサーバーの権限でOSコマンドを実行されるおそれのある脆弱性が見つかりました。4.5.12と4.6.02より前の版が対象で、4.5.12と4.6.02で修正されています。Apache mod_phpでshort_open_tagなどが有効な環境で影響するとされているため、該当する版を使っている場合は修正版への更新を急いでください。
Original description The description as published by the source.
NukeViet CMS is a multi Content Management System. Prior to 4.5.12 and 4.6.02, an attacker who can reach an image-upload flow can upload a valid image with appended PHP short-tag code and a double-extension filename. NukeViet\Files\Upload::save_file() relied on verify_image(), which missed the <? short-open tag, while filename handling preserved embedded dots, validation inspected only the final extension, and an .htaccess rule blocked PHP extensions only at the end of the URI. On Apache mod_php systems configured with short_open_tag and a PHP extension handler, the stored polyglot can execute as PHP and run operating-system commands as the web-server user; PHP-FPM, nginx, and end-anchored handler configurations are not exposed to the execution step. This issue is fixed in versions 4.5.12 and 4.6.02.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com
- web nukeviet.vn