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

Blind SQL injection with time delays

Exploited a blind SQL injection in a tracking cookie using time-based payloads. Confirmed vulnerability by triggering measurable delays and identifying PostgreSQL as the backend.

2025-09-152 tags
Tags

🎯 Objective

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

Goal:

  • Exploit the injection using a time-based SQLi payload
  • Prove the vulnerability by triggering a measurable delay

📝 Provided Information

  • No credentials are required for this lab.
  • Focus is on the tracking cookie parameter.

🔎 Analysis

Step 1: Identify the Vulnerable Parameter

First, I checked the requests and spotted that the tracking cookie was being sent.
This became the main target for injection testing.

Tracking Cookie


Step 2: Measure Normal Response Time

With a valid request, the server responded quickly (about 50 ms).
This serves as a baseline to detect potential delays.

Normal Response


Step 3: Test Database Type

I tested different payloads to determine the backend database.
Based on the response behavior, it looked like the server was not using MySQL.

Next, I tried PostgreSQL-specific payloads.

PostgreSQL Test

This time, the request execution jumped to about 20,073 ms, confirming the injection worked.

Confirmed Delay


🎉 Result

By exploiting the tracking cookie parameter, I successfully triggered a time delay using PostgreSQL syntax.
This confirms that the application is vulnerable to blind SQL injection (time-based). ✅

Navigate

In this post

  1. 01🎯 Objective
  2. 02📝 Provided Information
  3. 03🔎 Analysis
  4. 04Step 1: Identify the Vulnerable Parameter
  5. 05Step 2: Measure Normal Response Time
  6. 06Step 3: Test Database Type
  7. 07🎉 Result
Search
Explore

Popular tags

Browse all 30 tags

Comments

0 comments

No comments yet — be the first to comment.