#0298 · 方法
画出信任边界再找漏洞
做安全评审时按这个顺序:
1. 列出所有外部输入的来源(请求参数、请求头、文件、第三方回调、数据库里用户写的内容);
2. 标出每个输入跨过信任边界的位置;
3. 在每个位置检查有没有校验、转义和权限判断;
4. 输出:位置、风险、利用方式、修法。
[代码]
For a security review, in this order:
1. List every external input (params, headers, files, third-party callbacks, user content stored in the DB).
2. Mark where each crosses a trust boundary.
3. At each point check validation, escaping and authorization.
4. Output: location, risk, how it could be abused, fix.
[code]
小杜
已贴 1,040 张上墙共收到 0 个章