Dedecms GetCookie Type Juggling Authentication Bypass Vulnerability
The GetCookie function in Dedecms used a loose comparison when checking authenticated requests, so a crafted cookie value could pass the check without valid credentials. A remote attacker could use this to bypass authentication and act as a member user.
srcincite.io
Published on srcincite.io
7.3, (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
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
Impact
An attacker could bypass authentication and be treated as a member user, though the text does not claim administrative access.
What the attacker needed
Network access to the site; no account needed
The fix
The comparison should be changed to a strict check that also compares the value's type, but the text says no update was issued.
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.
When a website checks a login cookie, it compares the value the browser sends with the value it expects. In some programming languages, a loose comparison treats different-looking values as equal, for example a number and a string that start the same way. Here that sloppy check let someone get past the login check without knowing a real password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.