header-logo
Suggest Exploit
vendor:
url shortener script
by:
M.Jock3R
9
CVSS
HIGH
SQL Injection
89
CWE
Product Name: url shortener script
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE: N/A
CPE: a:djpate:url_shortener_script
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Windows XP Sp2 FR
2020

url shortener script 1.0 sql injection Vulnerabilities

The vulnerability exists due to insufficient sanitization of user-supplied input passed via the 'id' parameter to '/url-shortener-script/show.php' script. A remote attacker can send a specially crafted request to the vulnerable script and execute arbitrary SQL commands in application's database. This can be exploited to read, modify or delete arbitrary data in the database.

Mitigation:

Input validation should be used to prevent SQL injection attacks. All user-supplied input should be validated and filtered before passing it to the database.
Source

Exploit-DB raw data:

===================================================================================
url shortener script 1.0 sql injection Vulnerabilities
===================================================================================

# Exploit Title: url shortener script 1.0 sql injection Vulnerabilities
# Author: M.Jock3R
# Script Support Link: http://djpate.com/
# Download Script: http://www.phpkode.com/scripts/item/url-shortener-script/
# Category:: webapps
# Tested on: windows XP Sp2 FR
 
===================================================================================

Vuln file : show.php
 
Vuln Code : 

	if($_GET['id']){
		require("mysql.php"); 
		$id = addslashes($_GET['id']);
		$getUrl = mysql_query("select url from urls where id = $id");  
		
Exploit:
 
http://localhost/url-shortener-script/show.php?id=[Inj3ct]
 
===================================================================================
 
Greets To :
adelsbm / attiadona  / Wjunction forum
---------------------------------
I Love you Mindy
---------------------------------
Email : madrido.jocker@gmail.com
 
THANKS TO ALL ALGERIANS HACK3RS
===================================================================================