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

[Bug]: gin-vue-admin does not properly termine existing user sessions when the user was deleted or disabled #1324

Open
lujiefsi opened this issue Dec 27, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lujiefsi
Copy link

gin-vue-admin 版本

2.4.5

Node 版本

v14.16.0

Golang 版本

go 1.16

是否依旧存在

可以

bug描述

First, a user login gin-vue-admin in one page. Then the admin deletes or disables the user in another page. But the user is still able to do any operations inside gin-vue-admin. Notice that refreshing the page does not force users to login again.

We have report it on https://huntr.dev/bounties/49ee5f87-3e84-46ec-b8d3-8a57d4886db5/ 21days ago through [email protected] but do not receive feedback.

修改建议

invalid all the user session once the user is deleted.

@lujiefsi lujiefsi added the bug Something isn't working label Dec 27, 2022
@pixelmaxQm
Copy link
Collaborator

We have comments for this situation in the JWT code. If necessary, you can open that comment yourself. Currently, it is only for the purpose of reducing database read and write, and this detection has not been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants
@lujiefsi @SliverHorn @songzhibin97 @bypanghu @pixelmaxQm and others