| 标题 | wolone BlizzCMS 1.2.1 Broken Access Control |
|---|
| 描述 | `/confmigrate` is routed to `Home::setconfig()`, which verifies neither the login state nor the installation-complete flag `migrate_status`. The endpoint therefore remains open to any anonymous visitor after the site has been fully installed. It passes six POST fields verbatim to `Home_model::updateconfigs()`, which uses `Array_Config_Writer` to overwrite `application/config/blizzcms.php` directly via `file_put_contents()`. Although each value is escaped by `var_export()`, the resulting literal is then concatenated into the **replacement string** of a `preg_replace()` call (`'$1$2 = ' . var_export($replacement, true)`). A `$2` inside the value is consequently interpreted as a backreference and expanded to `['website_name']`, whose embedded single quotes terminate the PHP string literal and leave the configuration file syntactically invalid. That configuration is loaded during the bootstrap phase of every request through `$autoload['config'] = ['blizzcms', 'seo']` in `application/config/autoload.php`; once corrupted, every request to the site returns a PHP Parse error and administrators cannot log in to repair it. The same request can also set `emulator` / `bnet_enabled` to arbitrary values, causing the `switch` in `Auth_model::valid_password()` to match no branch and return false, which locks out every account including administrators. |
|---|
| 来源 | ⚠️ https://github.com/WoW-CMS/BlizzCMS/issues/162 |
|---|
| 用户 | Wuwj (UID 101900) |
|---|
| 提交 | 2026-10-30 14時44分 (28 日前) |
|---|
| 管理 | 2026-11-26 22時30分 (27 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 444642 [WOW-CMS BlizzCMS 直到 1.2.1 Home Home.php Home::setconfig 权限提升] |
|---|
| 积分 | 20 |
|---|