此报告尚无所请求语言的翻译,当前显示规范英文报告。
版本化安全评估
报告编号: SA-E4FF58A7
7/4/2026, 4:42:25 PM
python-fastapi 安全评估 v6
Skill 安全认证报告
审计模型: codex 历史报告
- 技能名称
- python-fastapi
- 版本
- v6
- 维护者
- 0xkynz
- 覆盖范围
- 1 已扫描文件 · 710 分析行数
- 策略版本
- 不可用
已确认问题的最高严重性
严重
有 3 个已确认的安全问题需要处理。
安装上下文
历史证据
本报告可能无法描述当前可安装的 artifact。请打开当前 Skill 详情页查看安装建议。
打开当前 Skill 详情页本报告不会阻止或授权 manifest 或 ZIP。
Most code fence, dotenv, and SQLAlchemy session findings are false positives from documentation examples. Confirmed risks include remote installer execution, hardcoded placeholder secrets, broad Uvicorn binding, permissive CORS, and unauthenticated user endpoints. No prompt injection evidence was found.
报告位置
历史报告
使用本报告安装前,请先查看审计历史。
审计证明
无法签发证明
所需的不可变绑定不完整。
人工验证
未进行人工验证
本报告没有人工验证记录。
覆盖范围
1 已扫描文件 · 710 分析行数
有 8 项内容需要查看
局限
本报告不声称进行了运行时或沙箱执行,也不证明不存在副作用。
证据链
证据从来源绑定延伸到安装契约。证据可用于验证,但不是安全保证。
来源
绑定不可用
构件
身份信息不完整
审计
已完成
观察到的能力
“已观察到”表示本报告记录了支持证据;“未记录”不证明该能力不存在。
包含脚本
可能执行 Skill 随附的代码。
在 1 个证据位置观察到
网络访问
可能连接外部服务。
在 4 个证据位置观察到
文件系统访问
可能读取或写入本地文件。
本次审计未记录
环境变量
可能读取进程环境中的值。
在 8 个证据位置观察到
外部命令
可能调用 Skill 之外的命令或程序。
在 38 个证据位置观察到
能力复核项 (5)
高
Hardcoded URL
curl -LsSf https://astral.sh/uv/install.sh | sh
The hardcoded URL is used in a curl pipeline that downloads an installer. This creates network execution risk if copied without verification.
高
Database connection strings
database_url: str = "postgresql+asyncpg://user:pass@localhost:5432/db"
The sample sets a default database URL with embedded user and password values. Placeholder credentials can be copied into real deployments.
高
Generic API/secret keys
secret_key: str = "change-me-in-production"
The sample provides a hardcoded default secret key. A predictable default can compromise tokens or signed data if reused in production.
中
Hardcoded IP address
uv run uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
The development command binds Uvicorn to 0.0.0.0, exposing the service on all interfaces. This is risky if copied outside a controlled environment.
中
Hardcoded IP address
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
The production command binds Uvicorn to 0.0.0.0 without showing network controls. This can expose the API directly to untrusted networks.
风险问题
已确认的安全问题与仍需审核的项目分开展示。
已确认安全问题 (3)
RISK-001 严重
Pipe to shell pattern
curl -LsSf https://astral.sh/uv/install.sh | sh
The command pipes a remotely downloaded installer directly into sh. This executes network content without checksum verification or review.
RISK-002 高
Permissive CORS Configuration
The sample FastAPI app allows all origins, methods, and headers while enabling credentials. This can expose authenticated browser requests if copied into production.
The CORS middleware settings are explicit and broad. The comment says to configure for production, but the unsafe default remains in the sample.
RISK-003 高
Unprotected User Management Endpoints
The user routes list, fetch, create, and update users without authentication or authorization checks. A copied template could expose user records and allow unauthorized changes.
The handlers only depend on the service object and do not check a current user or permissions. The code may be illustrative, so confidence is high but not absolute.
补救措施
本次审计记录了建议的修复措施。实施这些措施是维护者的责任。
- FIX-001严重Remote installer is piped directly into a shell.Replace curl pipe-to-shell setup with package manager instructions, version pinning, and checksum verification steps.
- FIX-002高Database URL and secret key examples include hardcoded defaults.Require these values from environment variables and show safe placeholders without embedded credentials.
- FIX-003高User management routes do not show authentication or authorization checks.Add current-user dependencies, role checks, and ownership checks before returning or updating user records.
- FIX-004高CORS middleware allows wildcard origins with credentials.Use environment-specific allowed origins and avoid wildcard methods and headers in production examples.
- FIX-005中Run commands bind Uvicorn to all interfaces.Use 127.0.0.1 for local development and document reverse proxy, firewall, and TLS controls for production.
专家证据
不可变主体身份、扫描器元数据、已排除匹配项和源码级证据。
Artifact 主体
- Marketplace 提交
- 不可用
- 内容哈希
- 不可用
- 目录树哈希
- 不可用
- Skill 路径
- 不可用
- 审计载荷哈希
- 不可用
分析元数据
审计模型: codex
分析状态: 已完成
范围仅限于已记录的文件、行数、方法和证据;本报告不声称进行了运行时或沙箱执行。
验证与导出
manifest 和 lockfile 将安装 artifact 绑定到加密哈希。该完整性声明独立于安全评估。
审计证明: not_attestable