Skip to content

Reading list

Learn CSRF from real reports

Another site makes a signed-in user's browser perform an action they did not intend.

12 reports, easiest first.

  1. # A 4-Line HTML File Stole the Admin’s Secret — Intigriti Lea

    Beginner

    The /share endpoint lacked CSRF protection and the session cookie was set with SameSite=None, so a cross-site form could make the admin share their private recipe box with the attacker. The attacker hosted an auto-submitting form and submitted its URL to the admin bot, which visited it and shared the box, revealing the flag.

    A CSRF attack tricks a logged-in user's browser into sending a request the user did not intend. Here, the site's session cookie was sent even on requests from other websites, and the share form had no secret token to prove the request came from the real site. So a page on another site could make the admin share their private recipes with the attacker.

    The lesson. The /share endpoint had no CSRF token or Origin/Referer validation, and the session cookie used SameSite=None, so browsers sent it on cross-site POSTs.

  2. My First CVE: A CSRF Vulnerability in Horilla HRMS (CVE-2026-86066)

    Beginner

    The attendance-approval endpoint in Horilla HRMS changed database state when reached by a plain HTTP GET and had no anti-CSRF token check. An attacker could make a logged-in manager's browser open a crafted page and silently approve a pending attendance request in the victim's name.

    When you log in to a site, your browser stores a cookie that proves who you are, and it sends that cookie with every request to the site, even ones started from another page. This endpoint approved an attendance request just by being visited with a normal link, and it never asked for a secret token that only the real site could provide. So a page controlled by an attacker could make the victim's browser approve a request without the victim meaning to.

    The lesson. The view performed a state-changing write on a GET request and lacked both a POST-only restriction and CSRF token validation, so Django's CSRF middleware never applied.

  3. Account Takeover via CSRF on the Email-Change Endpoint $1,300 Bou

    Beginner

    The email-change endpoint accepted cross-site POST requests without any anti-CSRF protection, so an attacker could silently change a logged-in victim's account email to one they controlled. A standard password reset then completed a full account takeover.

    When you log into a website, your browser stores a cookie that proves who you are. If a website changes important settings (like your email) based only on that cookie, another website can trick your browser into sending that change request without you knowing. Here, an attacker could change your email to theirs, then use the 'forgot password' link to take over your account.

    The lesson. Likely the endpoint lacked a CSRF token and the session cookie was not marked SameSite, so a cross-site POST was accepted with the victim's session; additionally, email changes were applied immediately without re-authentication or verification of the new address.

  4. Flickr API Explorer – Force users to execute any API request.

    Flickr Beginner $100

    The Flickr API Explorer did not validate the CSRF token (magic_cookie) on requests that execute API calls as the logged-in user with full permissions. An attacker could force a logged-in user to perform state-changing API actions such as posting comments, adding photos to sets, or joining groups.

    When you are logged into a website, your browser sends your session cookie with every request to that site. A CSRF attack tricks your browser into sending a request you did not intend, like posting a comment, by hiding a form on another page you visit. Here, the site's protection against this was missing on a special developer tool, so an attacker could make you perform actions on Flickr without your knowledge.

    The lesson. The API Explorer endpoint failed to validate the CSRF token (magic_cookie) on state-changing requests, likely because CSRF protection was applied as a blacklist rather than a whitelist.

  5. CSRF on moneybookers, yfrog and few other sites

    Beginner

    Many popular websites lacked CSRF protections, allowing an attacker to force a logged-in user's browser to perform actions like following accounts, changing profile details, or even adding a bank account and withdrawing money. The author demonstrated these issues on multiple sites, including a production-ready attack against moneybookers.com.

    CSRF (Cross-Site Request Forgery) is when a malicious website makes your browser send a request to another site where you're logged in, without you knowing. Because your browser automatically includes your login cookies, the other site thinks the request came from you. This can lead to actions like changing your profile, following someone, or transferring money.

    The lesson. Likely the sites did not use anti-CSRF tokens or other protections to verify that requests were intentionally made by the user.

  6. What was the bug?

    Pinterest Beginner $2,400

    A CSRF token was not validated when a POST request was changed to a GET, allowing an attacker to modify a victim's email and username via a crafted link. The attacker could then use the changed email to reset the password and take over the account.

    A CSRF attack tricks a logged-in user into making a request they didn't intend, often by clicking a link. Here, the site checked a security token only for POST requests, so changing the request to GET bypassed the check. The attacker could then change the victim's email to one they control and reset the password.

  7. How I Was Able To Takeover User Accounts Via Csrf On An E Commerce Website

    Beginner

    The profile update endpoint lacked CSRF protection, allowing an attacker to change a victim's email address via a forged request. The attacker then used the password reset flow to take over the account.

    CSRF is when a malicious site tricks your browser into sending a request to another site where you're logged in. Here, the profile update form had no secret token to prove the request came from the real site, so an attacker could change your email. Then they used 'forgot password' to reset your password and take over your account.

  8. Arbitrary change of blog's background image via CSRF

    WordPress Beginner

    A deprecated WordPress AJAX handler for setting the blog background image still runs and lacks a CSRF check, so a crafted page can make a logged-in administrator change the background image to any existing media library attachment. The blog's appearance could be altered and, depending on the image, made unreadable.

    A website can be tricked into accepting a request from another site if it does not check that the request really came from its own pages; this is called cross-site request forgery (CSRF). Here an old, supposedly retired feature still accepts such requests, so a page the attacker controls can quietly tell a logged-in administrator's browser to swap the blog's background picture. The attacker cannot pick any image from the internet, only ones already uploaded to the site.

    The lesson. A deprecated AJAX action remained registered and its handler checks the user's capability but performs no CSRF nonce check.

  9. Widespread CSRF on authenticated POST endpoints

    UPchieve Beginner

    Most authenticated POST endpoints lack CSRF protection, allowing an attacker to perform actions on behalf of a logged-in user. The attacker can set availability, submit quizzes, send password reset emails, and submit background information without the user's consent.

    When you log into a website, your browser stores a cookie that proves who you are. If another website makes a request to the first site, the browser automatically sends that cookie. Without extra checks, the first site cannot tell if you meant to make the request or if another site tricked you. This is called cross-site request forgery (CSRF).

    The lesson. The session cookie lacks the SameSite attribute and the endpoints do not use CSRF tokens, so the browser sends the cookie with cross-site form submissions.

  10. Gradle Plugin Portal: Clickjacking & Cross-Site Request Forgery enabling Account Takeover

    Beginner

    The Gradle Plugin Portal's profile page lacked an anti-framing header and its account update form had no anti-CSRF token, so any website could submit a forged form using the visitor's session and change a logged-in plugin author's username, email and password. Because the session cookie never expired, an attacker could take over accounts of plugin authors and potentially publish malicious plugins.

    When you log in to a site, your browser keeps a session cookie that proves who you are, and it sends that cookie with every request to the site, even requests triggered by a different website. If the site's forms do not carry a secret token that only the real site can produce, another site can quietly submit the same form on your behalf. Separately, if a site can be loaded inside a frame on someone else's page, an attacker can overlay invisible buttons so your clicks land on the real site.

    The lesson. The account update form relied only on the session cookie for authentication and had no anti-CSRF token, and the site sent no X-Frame-Options header to prevent framing.

  11. How I hacked Instagram to see private photos

    Beginner

    Instagram's API endpoints for setting a profile public or private lacked CSRF protections, allowing an attacker to change a victim's privacy settings via a crafted web page. This could make a private profile public, exposing the user's photos and personal information.

    When you log into a website, your browser stores a session cookie. If the site doesn't use extra security tokens, another website can make your browser send requests to the site without your knowledge. This is called cross-site request forgery (CSRF). Here, an attacker could trick a logged-in Instagram user into visiting a page that silently changed their profile from private to public, exposing their photos.

    The lesson. The API endpoints for changing profile privacy did not require any CSRF token or verify the request's origin, and they also did not check the user-agent to ensure requests came from the mobile app.

  12. WWBN AVideo all cross-site request forgery (csrf) vulnerability

    Cisco Talos Beginner

    AVideo lacks CSRF protection across the whole application, so an attacker can trick a logged-in administrator into submitting a forged request that changes their password to one the attacker controls.

    Cross-site request forgery (CSRF) is when a malicious website makes a logged-in user's browser send a request to another site without the user knowing. Here, the AVideo site does not check that the request really came from the user, so an attacker can change an admin's password by getting them to visit a page that quietly submits a form.

    The lesson. The application does not include or verify any anti-CSRF token on state-changing requests.