GetSimpleCMS CSRF | Parol Dəyişdirmə Funksiyasında Tapdığ�
The password-change form in the GetSimpleCMS admin profile page did not properly protect against cross-site request forgery, so a malicious HTML page could submit the form on a logged-in user's behalf. An attacker could silently change the victim's password and take over the account.
Published on zeynalxan.medium.com
Bu günlərdə GetSimpleCMS -i nəzərdən keçirərkən ciddi bir təhlükəsizlik problemi ilə üzləşdim. İdarə panelində parol dəyişdirmə funksiyasında bir CSRF zəifliyi var idi ki, bu da istifadəçinin xəbəri olmadan onun adından dəyişikliklərin həyata keçirilməsinə imkan verir. Bu, istifadəçilər üçün böyük risk yaradır, çünki…
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 password-change endpoint accepted a form submission without a properly validated, per-session anti-CSRF token, so a request from another site was treated as legitimate.
Impact
An attacker could change the victim's password without their knowledge and gain full access to the account, and could also alter or steal personal data held there.
What the attacker needed
Victim is logged in as admin; victim opens attacker's page
The fix
The form should be protected with a unique, server-validated anti-CSRF token per action, cookies should use the SameSite attribute, and important changes should require user confirmation.
How it was found
- The attacker builds a page containing a hidden form that posts to the admin profile endpoint with new password values.
- The attacker gets a logged-in administrator to open that page.
- The page automatically submits the form using the victim's existing session.
- The victim's password is changed without their knowledge.
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 you log in to a website, your browser keeps a cookie that proves who you are. Cross-site request forgery (CSRF) tricks your browser into sending a request to that site from a different, attacker-controlled page, and the site accepts it because your cookie is still there. Here the password-change form accepted such a request, so a page the victim visited could quietly set a new password.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.