漏洞描述: HT Contact Form Widget是WordPress的一个插件,用于创建和管理联系表单。该插件广泛应用于使用WordPress构建的网站中,提供了用户友好的界面和功能,使得网站管理员可以轻松添加联系表单。然而,该插件在版本2.2.1及之前存在一个严重的未授权任意文件上传漏洞。该漏洞源于temp_file_upload函数中缺乏对文件类型的适当验证,使得未经认证的攻击者能够上传任意文件到服务器。这一漏洞的技术根源在于未能正确限制上传文件的类型和内容,导致攻击者可以上传恶意文件,如PHP脚本,进而在服务器上执行任意代码。由于该漏洞不需要任何认证即可利用,攻击者可以轻松地利用此漏洞上传恶意文件,进而可能导致服务器被完全控制,包括数据泄露、恶意代码执行和服务中断等严重后果。因此,该漏洞的严重性评级为’严重’,建议用户立即更新插件到最新版本或移除插件以防止潜在的攻击。
info: name: HT Contact Form Widget <=2.2.1- Unauthenticated Arbitrary File Upload author: pussycat0x severity: critical description: | The HT Contact Form Widget plugin for WordPress (≤ v2.2.1) lacks proper file type validation in the temp_file_upload function. This allows unauthenticated attackers to upload arbitrary files to the server. impact: | Unauthenticated attackers can upload and execute arbitrary files on the server, potentially leading to complete system compromise including data theft, malicious code execution, and server takeover. remediation: | Update the HT Contact Form Widget plugin to a version newer than 2.2.1or remove the plugin if no patch is available. reference: - https://nvd.nist.gov/vuln/detail/CVE-2025-7340 - https://wordpress.org/plugins/ht-contactform/ classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score:9.8 cve-id: CVE-2025-7340 cwe-id: CWE-434 metadata: verified:true max-request:3 vendor: htheme product: ht_contact_form_widget shodan-query: http.html:"wp-content/plugins/ht-contactform" tags: cve,cve2025,wordpress,intrusive,rce,htcontact,plugin,file-upload,htheme