Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete user not invalid authentication token through REST APIs #1019

Open
2 of 3 tasks
menghaining opened this issue May 12, 2024 · 0 comments
Open
2 of 3 tasks

Delete user not invalid authentication token through REST APIs #1019

menghaining opened this issue May 12, 2024 · 0 comments
Labels
bug 软件缺陷

Comments

@menghaining
Copy link
Contributor

现在行为

Old authentication token can be used after admin delete the user through REST API. This is CWE-613: insufficient session expiration vulnerability.
PoC

预期行为

Although the admin deletes the user through REST APIs, the user's authentication token needs to be invalidated together.

操作系统

  • macOS or Mac OSX
  • Windows
  • Linux(Debian, CentOS, Ubuntu, etc.)

解决方案

Add invalidate authorization like bearerTokenMgr.delete(authorization); of the deleted user at positions:

代码版本

v7.x, v8.x

@menghaining menghaining added the bug 软件缺陷 label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 软件缺陷
Projects
None yet
Development

No branches or pull requests

1 participant