cve/2021/CVE-2021-24555.md
2025-09-29 21:09:30 +02:00

20 lines
1.1 KiB
Markdown

### [CVE-2021-24555](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24555)
![](https://img.shields.io/static/v1?label=Product&message=Diary%20%26%20Availability%20Calendar&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=1.0.3%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-352%20Cross-Site%20Request%20Forgery%20(CSRF)&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-89%20SQL%20Injection&color=brightgreen)
### Description
The daac_delete_booking_callback function, hooked to the daac_delete_booking AJAX action, takes the id POST parameter which is passed into the SQL statement without proper sanitisation, validation or escaping, leading to a SQL Injection issue. Furthermore, the ajax action is lacking any CSRF and capability check, making it available to any authenticated user.
### POC
#### Reference
- https://codevigilant.com/disclosure/2021/wp-plugin-diary-availability-calendar/
- https://wpscan.com/vulnerability/8eafd84b-6214-450b-869b-0afe7cca4c5f
#### Github
- https://github.com/20142995/nuclei-templates