TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How will you handle Yahoo's recent authorization bug in your app?

1 点作者 reinwald将近 11 年前
This is with reference to http:&#x2F;&#x2F;thehackernews.com&#x2F;2014&#x2F;05&#x2F;vulnerability-in-yahoo-websites-allows.html<p>Authentication normally has three steps:<p>1. Authenticating User : username, passwd verification i.e a valid yahoo user 2. Authorizing Action (role based access): whether user is allowed to perform the action i.e user is allowed to delete comments 3. Authorizing Entity : verify user owns the entity i.e user is allowed to delete only his comments.<p>How do you handle the third step in your application ?

1 comment

kiritsinh将近 11 年前
i think what we can do is to run static code analysis to ensure all public methods have the third level authentication written in it. However it won&#x27;t solve problem of making mistakes in the db queries. would love to see other&#x27;s answers here if we can come up with generic full-proof solution.