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] User data confidentiality compromised! #46

Open
Adeleye080 opened this issue Dec 31, 2024 · 1 comment
Open

[BUG] User data confidentiality compromised! #46

Adeleye080 opened this issue Dec 31, 2024 · 1 comment
Assignees
Labels
bug Something isn't working correction Request corrections

Comments

@Adeleye080
Copy link
Collaborator

Describe the problem

I could access a new access token using just a simple uuid string given as a refresh-token upon login. This is a dangerous bug that needs quick fix.

Concerned endpoints

  • /user/refresh_token
  • /user/login

Steps to reproduce the problem

  1. POST request to the first concerned endpoint

Screenshot (If applicable)

image

Expected behavior

Refresh token should be a JWT string that is encoded by server and decoded with server secret upon POST request to the first concerned endpoint. This is crucial to maintain security, so that accounts won't be compromised.

Solution

  • Return refresh token (JWT) upon login alongside access token(JWT) and decode refresh token upon access to the first concerned endpoint
@Adeleye080 Adeleye080 added bug Something isn't working correction Request corrections labels Dec 31, 2024
@rohteemie
Copy link
Owner

Kindly provide a more descriptive analysis of the problem in detail, please.

@Adeleye080 Adeleye080 changed the title [BUG] Acess to user data compromised! [BUG] User data confidentiality compromised! Jan 2, 2025
@Adeleye080 Adeleye080 moved this to Todo in iGotha project Jan 6, 2025
@rohteemie rohteemie moved this from Todo to In Progress in iGotha project Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correction Request corrections
Projects
Status: In Progress
Development

No branches or pull requests

2 participants