跳到內容
Agent Threat Rules (ATR)EN
Ζ權限提升
ATR-2026-01974
收錄於 2026-06-29 · 作者 ATR Community

AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)

CVE-2024-3279: improper access control on the mintplex-labs/anything-llm POST /system/data-import endpoint (<1.0.0).

improper access control · pattern · confidence: high

嚴重度
critical
車道
alert · hunt比對到就標出、回報
成熟度
test還沒定論
掃描目標
both
狀態
experimental

框架對照

OWASP Agentic Top 10
  • ASI03:2026
OWASP LLM Top 10
  • LLM06:2025

這些對應是 ATR 自己做的,框架方沒有審查或背書。

說明

CVE-2024-3279: improper access control on the mintplex-labs/anything-llm POST /system/data-import endpoint (<1.0.0). An anonymous, unauthenticated attacker uploads their own database file via multipart formData, deleting or spoofing the existing anythingllm.db SQLite database to serve malicious data or harvest user info. This rule keys on the data-import endpoint path combined with the database-file import sink (anythingllm.db / data-import upload).

建議回應alertblock input
作者:ATR Community · 建立 2026-06-29 · 最後修改 2026-11-18

偵測條件

組合方式:any
  1. 01
    POST upload to the unauthenticated /system/data-import endpoint with a multipart DB file
    欄位:content運算子:regex
  2. 02
    Import/upload of the anythingllm.db database file via the data-import sink
    欄位:content運算子:regex
  3. 03
    explicit CVE framing
    欄位:content運算子:regex

會觸發的攻擊範例

  1. curl -X POST http://target:3001/api/system/data-import -F '[email protected]' to overwrite anythingllm.db with no auth header
  2. fetch(`${API_BASE}/system/data-import`, { method: 'POST', body: formData }) // uploads attacker anythingllm.db, no auth
  3. Exploit for CVE-2024-3279: unauthenticated attacker imports their own anythingllm.db via /system/data-import to spoof the database

規則必須抓到的攻擊範例,很多是照公開回報的攻擊改寫的,有些是照攻擊的形狀寫出來的。範例跟規則一起版本化,當作回歸測試。之後改規則時,如果其中一個範例不再命中,一定看得出來。

不會觸發的正常樣本

  1. Mentions anythingllm.db for backup but no data-import upload/POST sink
    Our admin docs explain how to back up anythingllm.db from the server/storage directory before upgrading.
  2. Describes the removed feature generically without the endpoint path or DB upload
    The settings page used to have an Export or Import button; that feature was removed in v1.0.0 for security.
  3. A different multipart upload endpoint, not /system/data-import and not the DB file
    POST /api/workspace/upload with formData to add a multipart PDF document to a workspace for embedding.

已知的誤報情境

  • ▸Documentation or release notes describing the removed Export/Import feature without an actual unauthenticated upload request to /system/data-import
  • ▸Legitimate authenticated admin using a backup/restore tool that references anythingllm.db by path but does not POST it to the /system/data-import endpoint
title: "AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)"
id: ATR-2026-01974
rule_version: 1
status: experimental
description: >
  CVE-2024-3279: improper access control on the mintplex-labs/anything-llm
  POST /system/data-import endpoint (<1.0.0). An anonymous, unauthenticated
  attacker uploads their own database file via multipart formData, deleting or
  spoofing the existing anythingllm.db SQLite database to serve malicious data
  or harvest user info. This rule keys on the data-import endpoint path combined
  with the database-file import sink (anythingllm.db / data-import upload).
author: "ATR Community"
date: "2026/06/29"
schema_version: "0.1"
detection_tier: pattern
maturity: test
severity: critical
references:
  owasp_llm: ["LLM06:2025"]
  owasp_agentic: ["ASI03:2026"]
  mitre_atlas: ["AML.T0049 - Exploit Public-Facing Application"]
  mitre_attack: ["T1190 - Exploit Public-Facing Application"]
  cve: ["CVE-2024-3279"]
metadata_provenance: { mitre_atlas: human-reviewed, owasp_llm: human-reviewed, owasp_agentic: human-reviewed }
compliance:
  eu_ai_act:
    - article: "15"
      context: "Article 15 (accuracy, robustness, cybersecurity) — runtime detection of this technique is a cybersecurity control for high-risk AI systems. Technique: AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)."
      strength: primary
    - article: "9"
      context: "Article 9 (risk management system) requires identified risks to be addressed by appropriate measures; this rule is a runtime risk-treatment control. Technique: AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)."
      strength: secondary
  nist_ai_rmf:
    - subcategory: "MP.5.1"
      context: "NIST AI RMF MAP 5.1 — likelihood and impact of the identified attack are characterised; this rule detects the adversarial input at runtime. Technique: AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)."
      strength: primary
    - subcategory: "MG.3.2"
      context: "NIST AI RMF MANAGE 3.2 — runtime monitoring/maintenance control that surfaces this attack class. Technique: AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)."
      strength: secondary
  iso_42001:
顯示全部(還有 52 行)
    - clause: "8.1"
      context: "ISO/IEC 42001 Clause 8.1 (operational planning and control) — detection of this payload is an operational control. Technique: AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)."
      strength: primary
    - clause: "8.3"
      context: "ISO/IEC 42001 Clause 8.3 (AI risk treatment) — this rule implements runtime detection as a treatment control. Technique: AnythingLLM unauthenticated /system/data-import access control bypass (CVE-2024-3279)."
      strength: secondary
tags: { category: privilege-escalation, subcategory: improper-access-control, scan_target: both, confidence: high, source: cve-disclosure, vendor_sources: anything-llm-cve-2024-3279 }
agent_source: { type: llm_io, framework: [any], provider: [any] }
detection:
  condition: any
  false_positives:
    - "Documentation or release notes describing the removed Export/Import feature without an actual unauthenticated upload request to /system/data-import"
    - "Legitimate authenticated admin using a backup/restore tool that references anythingllm.db by path but does not POST it to the /system/data-import endpoint"
  conditions:
    - field: content
      operator: regex
      value: '(?i)/system/data-import\b[\s\S]{0,300}(?:multipart/form-data|form-?data|multer|\.db\b|anythingllm\.db|method\s*[:=]\s*["'']?post)'
      description: "POST upload to the unauthenticated /system/data-import endpoint with a multipart DB file"
    - field: content
      operator: regex
      value: '(?i)anythingllm\.db[\s\S]{0,200}(?:/system/data-import|data-import|formData|multipart|import)'
      description: "Import/upload of the anythingllm.db database file via the data-import sink"
    - field: content
      operator: regex
      value: '(?i)CVE-2024-3279[\s\S]{0,200}(?:data-import|anythingllm|access control|unauthenticated)'
      description: "explicit CVE framing"
response:
  actions: [alert, block_input]
  message_template: >
    [ATR-2026-01974] CRITICAL: Unauthenticated AnythingLLM /system/data-import upload can overwrite/spoof anythingllm.db (CVE-2024-3279). Block and patch to >=1.0.0.
confidence: 80
test_cases:
  true_positives:
    - input: "curl -X POST http://target:3001/api/system/data-import -F '[email protected]' to overwrite anythingllm.db with no auth header"
      expected: triggered
      description: "Anonymous multipart POST to /system/data-import uploading a malicious database file"
    - input: "fetch(`${API_BASE}/system/data-import`, { method: 'POST', body: formData }) // uploads attacker anythingllm.db, no auth"
      expected: triggered
      description: "Frontend-style unauthenticated data-import upload of the DB file"
    - input: "Exploit for CVE-2024-3279: unauthenticated attacker imports their own anythingllm.db via /system/data-import to spoof the database"
      expected: triggered
      description: "Explicit CVE reference with the data-import access control bypass"
  true_negatives:
    - input: "Our admin docs explain how to back up anythingllm.db from the server/storage directory before upgrading."
      expected: not_triggered
      description: "Mentions anythingllm.db for backup but no data-import upload/POST sink"
    - input: "The settings page used to have an Export or Import button; that feature was removed in v1.0.0 for security."
      expected: not_triggered
      description: "Describes the removed feature generically without the endpoint path or DB upload"
    - input: "POST /api/workspace/upload with formData to add a multipart PDF document to a workspace for embedding."
      expected: not_triggered
      description: "A different multipart upload endpoint, not /system/data-import and not the DB file"

修訂紀錄

建立於
2026-06-29
最後修改
2026-11-18
到 GitHub 看完整的 commit 紀錄