应用程序所有者获得错误的访问令牌

发布于 2025-01-05 01:28:02 字数 584 浏览 4 评论 0原文

我偶然发现了一个奇怪的边缘情况。我不能 100% 确定我是否错过了某个条件,所以如果其他人能够重现,那将会很有趣。

  • 假设我是一个应用程序的所有者
  • ,并且另一个 Flattr 用户已连接到该应用程序
  • ,并且我将我的 Flatrr 帐户与该应用程序连接
  • ,并且我撤销了对我的 Flattr 帐户中该应用程序的访问权限
  • ,然后再次连接了我的 Flattr 帐户,
  • 我希望得到一个我的帐户的访问令牌,但
  • 我获得了其他连接的 Flattr 帐户的访问令牌

这在使用时发生: Node.js 上的 Passport ,带有 passport-flattr 策略

此设置不在令牌端点上使用基本 OAuth,而是发送普通客户端凭据。

这似乎不是一个安全问题,因为应用程序的所有者已经可以访问连接到其应用程序的所有访问令牌。

I stumbled over a strange edge case. I'm not 100% sure if I missed a condition, so it would be interesting if others could reproduce.

  • Given I am the owner of an app
  • and another Flattr user is connected to this app
  • and I connect my Flatrr account with the app
  • and I revoke the access to the app in my Flattr account
  • and I connect my Flattr account again
  • I expect to get an access token for my account, but
  • I get the access token for the other connected Flattr account

This occurred when using:
Passport on Node.js with the passport-flattr strategy

This setup does not use Basic OAuth on the token endpoint but sends plain Client Credentials instead.

This does not seem to be a security issue, since the owner of the app already has access to all access tokens connected to its app.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

成熟的代价 2025-01-12 01:28:02

Flattr API 中存在错误,现已修复。

There was an error in the Flattr API that now is patched.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文