Skip to content
Account takeover Disclosed report Intermediate CVE-2023-2105

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).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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.

More from alextselegidis/easyappointments

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.