alextselegidis/easyappointments Session Fixation vulnerability
The application does not issue a new session cookie after login, so an attacker who can plant a known session cookie in a victim's browser can take over the victim's authenticated session once they log in. If the victim is an administrator, the attacker gains admin privileges.
alextselegidis/easyappointments
Originally disclosed on huntr
alextselegidis/easyappointments is vulnerable to session fixation. The application does not generate a new ea_session cookie after the user authenticates. A malicious user may create a new session cookie value and inject it to a victim. After the victim logs in, the injected cookie becomes valid, giving the attacker access to the user's account through the active session. If an attacker conducts this attack against an admin user, the attacker may escalate their privileges with the admin user being unaware.
This issue is patched in commit 7f37350fab9d729a9350d96369ff0f453cf7b840 and anticipated to be part of version 1.5.0.
From the GitHub Advisory Database (GHSA-4qmm-cv4r-qfr4, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application fails to regenerate the session identifier upon successful authentication, allowing a pre-set session cookie to remain valid after login.
Impact
An attacker could take over a victim's account, and if the victim is an admin, escalate to admin privileges without the victim's knowledge.
What the attacker needed
Attacker can set victim's session cookie; victim logs in after cookie is set
The fix
The issue was fixed in a specific commit and is expected to be included in version 1.5.0.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you log in, a website usually gives you a fresh session cookie, which is like a temporary ID card proving you are logged in. Here, the site kept using whatever cookie the browser already had. An attacker could give a victim a cookie they already know, and after the victim logs in, that same cookie becomes a valid logged-in ID that the attacker can also use.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.