ollama-improper-authorization: Ollama - Improper Authorization

2026-01-16 Ollama PoC Public

Description

Detected an exposed Ollama API without proper authorization, allowing unauthorized access to AI models and operations.

PoC

id: ollama-improper-authorization

info:
  name: Ollama - Improper Authorization
  author: 0x_Akoko
  severity: medium
  description: |
    Detected an exposed Ollama API without proper authorization, allowing unauthorized access to AI models and operations.
  reference:
    - https://ollama.ai/
    - https://github.com/ollama/ollama
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-862
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"Ollama" port:11434
    fofa-query: body="Ollama" && port="11434"
  tags: ollama,exposure,misconfig,ai,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/tags"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "models", "modified_at", "digest", "size")'
        condition: and

    extractors:
      - type: json
        name: models
        part: body
        json:
          - '.models[].name'
# digest: 4a0a00473045022040c30eb2e46063cead5f6fe6ea2f100acdaeb2609c98503aa2792098dbea3367022100f67749eeec3e30001f2f96bf4b289f88c7717aaddf82abc00ee83a359935a908:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities