ATutor <= 2.2 (confirm.php) Session Variable Overloading Vulnerability
The confirmation script trusted a member identifier supplied in the request and used it to populate the session, so an attacker could set the session to any member's identity. This allowed logging in as an arbitrary user, including an administrator, without knowing their password.
karmainsecurity.com
Published on karmainsecurity.com
This script is intended to be used for the account confirmation. However, its “auto-login” feature uses the same session variables used to authenticate the user in the whole application, and this might enable unauthenticated attackers to bypass the authentication mechanism and impersonate legitimate users by simply…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the script took the member identifier straight from the request and wrote it into the session without checking that the requester had actually confirmed or authenticated as that member.
Impact
An attacker could take over any account, including administrative ones, by supplying that account's member identifier to the confirmation script.
What the attacker needed
Reachable confirm.php; a known member identifier
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 write-up has not been written yet. The Original tab links to the source.
A website keeps track of who you are in a 'session', a small record stored on the server after you log in. This page let the visitor choose which user ID to put into that record, so anyone could claim to be someone else. The result is that a stranger could act as any account, even an administrator.
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.