NukeViet CMSで管理者が任意のPHP関数を登録でき、遠隔からコマンドを実行される脆弱性
Summary
NukeViet CMSの4.6.01より前のバージョンには、カスタム項目の検証用コールバックに任意のPHP関数を設定できる脆弱性があり、Webサーバーの権限でコマンドを実行されるおそれがあります。修正版の4.6.01で対処されています。アップグレードしても、すでにデータベースに保存された不正なコールバックは消えないため、手作業での削除が必要です。
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の4.6.01より前のバージョンには、カスタム項目の検証用コールバックに任意のPHP関数を設定できる脆弱性があり、Webサーバーの権限でコマンドを実行されるおそれがあります。修正版の4.6.01で対処されています。アップグレードしても、すでにデータベースに保存された不正なコールバックは消えないため、手作業での削除が必要です。
Original description The description as published by the source.
NukeViet CMS is a multi Content Management System. Prior to 4.6.01, a super-administrator satisfying the NV_IS_SPADMIN gate can use modules/users/admin/fields.php to store an arbitrary existing PHP function in the func_callback setting for a custom profile field because the callback name is checked only with function_exists() and no allowlist restricts which function may be selected. modules/users/fields.check.php later invokes that function through call_user_func() when the field is validated through registration, profile editing, or administrator editing. Selecting a command-execution function crosses the super-administrator to operating-system boundary and executes commands as the web-server account, while ordinary users can trigger the stored callback after it is configured. Because the remediation validates callbacks only when they are written, upgrading does not remove a malicious callback already stored in the database, which must be cleaned manually. This issue is fixed in version 4.6.01.
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