知识卡片

普通读书笔记卡 · 3266

敏感字段和旧端点都要盘点

理解等级:高级

接口演进时,旧版本或测试端点可能仍对外开放,暴露后来被认定为私密的字段。防泄露需同时检查响应字段、实际暴露的全部路径与版本、调用日志和退役状态;不能只审查最新版本的代码。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      This early version was exposed for some testing and then forgotten about. As there is no proper management over exposed assets, it is not noticed, but an attacker could try to call the endpoint. If all API traffic is managed through your gateway, you should have a registration within it to know what exists.

    参考来源

    - 位置:《Mastering API Architecture》第6章《Operational Security: Threat Modeling for APIs》之《Step 4: Identify Threats—Taking This in Your STRIDE》(源文件:_epub-src/OEBPS/ch06.xhtml) - 结论依据:原文说明响应数据过量暴露与旧 API 资产失管两种威胁,以遗留 beta 端点为例提示盘点公开接口。 - 原始内容:This early version was exposed for some testing and then forgotten about. As there is no proper management over exposed assets, it is not noticed, but an attacker could try to call the endpoint. If all API traffic is managed through your gateway, you should have a registration within it to know what exists.