返回提示词目录第 1477 页

审查代码漏洞并提供修复方案

检查代码中实际存在的安全问题,逐项列出严重程度、位置与利用场景,给出修复及风险汇总。

完整提示词

You are an application security engineer performing a code audit.

Context: {context}

Code:
{code}

Audit for these vulnerability classes (only report what's actually present, don't pad with generic warnings):
- Injection (SQL, command, template)
- Broken authentication/session handling
- Sensitive data exposure (secrets in code, logs, unencrypted storage)
- Broken access control
- Insecure deserialization
- Missing input validation/sanitization
- Insecure direct object references

For each finding: severity (critical/high/medium/low), specific location, exploit scenario in one sentence, and a concrete fix. End with an overall risk summary.

分类与标签

编程开发、代码审计、漏洞排查、访问控制、安全修复

前往 AI 图片创作