Skip to content
SQL injection Disclosed report Beginner

SQL Injection on www.██████████ on countID parameter

The countID parameter on a public ColdFusion endpoint was vulnerable to SQL injection. An attacker could use it to read database information, and the reporter retrieved the database banner.

0_1vitthal Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 11 days
  • Disclosed after 14 months

Description: Hello Team, I have came across a sql injection vulnerability on www.██████ on countID parameter. I was able to retrieve the banner which is

Microsoft SQL Server 2008 R2 (SP3) - 10.50.6220.0 (X64& Mar 19 2015 12:32:14 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)

after confirming the vulnerability i have stopped testing further.

Vulnerable URL: https://www.███/public/saveCount.cfm?countID=4

Steps to Reproduce:

  1. python sqlmap.py -u https://www.██████████/public/saveCount.cfm?countID=4 --level=3 --risk=3

POC █████████

Impact

Attacker can take control over the database server.

The original report as published on HackerOne, by 0_1vitthal. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the countID parameter was inserted into a SQL query without proper parameterisation or validation.

Impact

An attacker could take control over the database server, according to the reporter.

What the attacker needed

None

How it was found

  1. Run an automated SQL injection tool against the saveCount.cfm URL with the countID parameter.

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 report has not been written yet. The Original tab links to the source.

A website often builds database queries using values from the URL. If those values are not handled safely, an attacker can add extra database instructions and make the server return information it should not. Here the countID value let the tester read the database version.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.