← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 10296.b.1.c.1.c.4.a · 生成模型:未记录

对象授权须逐请求校验

理解等级:中级

调用者有访问某个操作的权限之后,还要验证其对本次请求目标对象的访问权限。契约 lint 可推动使用不易猜测的标识,但标识形式仅降低被随意枚举的机会。对象权限应在服务实现明确,并由受控的防御性检查核对授权策略。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 10 章 自定义 Lint 与安全检查》(10.2 Automated security review of your API definitions;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-10.xhtml#p101) - 结论依据:原文以标识符类型作为设计检查信号,紧接着说明还要验证对象级授权。 - 原始内容:You can see from the results that several of the endpoints are using numeric identifiers, which can be guessable. To mitigate this, the design of the endpoints should be changed to use a Universally Unique Identifier (UUID) instead. Table 10.1 summarizes this vulnerability and how it can be detected with linting.