TAKO AI Agent for Oktaに認証済みユーザーが任意のPythonコードを実行できる脆弱性
Summary
TAKO AI Agent for Oktaの3.0.1-beta より前のバージョンでは、認証済みの一般ユーザーが検証をすり抜けて任意のPythonコードを実行でき、コンテナ内のroot権限で動作する可能性があります。Oktaのトークンやデータベースが漏えいするおそれがあるため、早めに3.0.1-betaへ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
TAKO AI Agent for Oktaの3.0.1-beta より前のバージョンでは、認証済みの一般ユーザーが検証をすり抜けて任意のPythonコードを実行でき、コンテナ内のroot権限で動作する可能性があります。Oktaのトークンやデータベースが漏えいするおそれがあるため、早めに3.0.1-betaへ更新してください。
Original description The description as published by the source.
TAKO AI Agent for Okta is a local-first AI agent that helps Okta administrators query tenant data using natural language. Prior to 3.0.1-beta, any authenticated user with a valid fctr_session cookie can submit arbitrary Python source in the script_code field of POST /api/react/execute-script, without administrator privilege. In src/api/routers/react_stream.py, the source is stored with skip_discovery=True, bypassing AI-based content filtering, and is passed to validate_generated_code in src/utils/security_config.py. BLOCKED_PATTERNS recognizes direct __import__ calls but misses the import name passed as a string, getattr is in ALLOWED_BUILTINS, and the AST checker handles ast.Name and ast.Attribute targets but fails to handle ast.Call targets. Dynamic getattr call chains through __builtins__ therefore evade validation. The _write_temp_script helper writes the accepted code to disk, and asyncio.create_subprocess_exec() executes it as the application process user, which is root in the default container. Command output is returned as Server-Sent Events through GET /api/react/stream-react-updates?process_id=. The resulting container compromise can disclose environment secrets including Okta API tokens and the JWT key, expose the SQLite database, and permit backend-service pivoting and persistence. This issue is fixed in version 3.0.1-beta.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com