8.8
HIGH
CVE-2018-12895
WordPress WordPress File Delete Code Execution Vulnerability
Description

WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the wp-admin/post.php thumb parameter, which is passed to the PHP unlink function and can delete the wp-config.php file. This is related to missing filename validation in the wp-includes/post.php wp_delete_attachment function. The attacker must have capabilities for files and posts that are normally available only to the Author, Editor, and Administrator roles. The attack methodology is to delete wp-config.php and then launch a new installation process to increase the attacker's privileges.

INFO

Published Date :

June 26, 2018, 8:29 p.m.

Last Modified :

Nov. 5, 2021, 6:42 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2018-12895 has a 7 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2018-12895 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Debian debian_linux
1 Wordpress wordpress
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2018-12895.

URL Resource
http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html Exploit Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/104569 Third Party Advisory VDB Entry
https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/ Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html Mailing List Third Party Advisory
https://wpvulndb.com/vulnerabilities/9100 Third Party Advisory
https://www.debian.org/security/2018/dsa-4250 Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

WordPress Pen Testing

Updated: 1 month, 2 weeks ago
3 stars 0 fork 0 watcher
Born at : Oct. 23, 2022, 8:42 p.m. This repo has been linked 100 different CVEs too.

DC-2 is a purposely built vulnerable lab for the purpose of gaining experience in the world of penetration testing. It was designed to be a challenge for beginners, but just how easy it is will depend on your skills and knowledge, and your ability to learn. To successfully complete this challenge, you will require Linux skills, familiarity with the Linux command line and experience with basic penetration testing tools, such as the tools that can be found on Kali Linux, or Parrot Security OS.

Updated: 7 months, 3 weeks ago
2 stars 0 fork 0 watcher
Born at : June 3, 2021, 4:52 a.m. This repo has been linked 45 different CVEs too.

Desarrollo del CTF DerpNStink

Updated: 3 years, 4 months ago
0 stars 1 fork 1 watcher
Born at : April 22, 2021, 1:40 p.m. This repo has been linked 41 different CVEs too.

None

Updated: 1 month ago
82 stars 32 fork 32 watcher
Born at : Oct. 2, 2020, 2:49 p.m. This repo has been linked 1111 different CVEs too.

Documentation for TAMUSA CSCI 4349.

penetration-testing

Python Shell PHP Batchfile CSS JavaScript HTML Smarty Pascal C++

Updated: 1 year, 6 months ago
3 stars 1 fork 1 watcher
Born at : Nov. 16, 2018, 4:57 a.m. This repo has been linked 24 different CVEs too.

codepath week 7 assignment

Updated: 5 years, 11 months ago
0 stars 0 fork 0 watcher
Born at : Oct. 8, 2018, 6:01 p.m. This repo has been linked 3 different CVEs too.

Hotfix for file deletion to to code execution vulnerability in WordPress

PHP

Updated: 2 years, 10 months ago
0 stars 0 fork 0 watcher
Born at : July 5, 2018, 7:09 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2018-12895 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-12895 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Nov. 05, 2021

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html No Types Assigned http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html Exploit, Third Party Advisory, VDB Entry
  • CVE Modified by [email protected]

    Oct. 25, 2021

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html [No Types Assigned]
  • Initial Analysis by [email protected]

    Aug. 20, 2018

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:L/Au:S/C:P/I:P/A:P)
    Added CVSS V3 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://www.debian.org/security/2018/dsa-4250 No Types Assigned https://www.debian.org/security/2018/dsa-4250 Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html No Types Assigned https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html Mailing List, Third Party Advisory
    Changed Reference Type https://wpvulndb.com/vulnerabilities/9100 No Types Assigned https://wpvulndb.com/vulnerabilities/9100 Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/104569 No Types Assigned http://www.securityfocus.com/bid/104569 Third Party Advisory, VDB Entry
    Changed Reference Type https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/ No Types Assigned https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/ Third Party Advisory
    Added CWE CWE-22
    Added CPE Configuration OR *cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:* versions up to (excluding) 4.9.7
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jul. 31, 2018

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 28, 2018

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2018/dsa-4250 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 01, 2018

    Action Type Old Value New Value
    Added Reference https://wpvulndb.com/vulnerabilities/9100 [No Types Assigned]
  • CVE Modified by [email protected]

    Jun. 30, 2018

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/104569 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2018-12895 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

45.74 }} -7.72%

score

0.97453

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability