Skip to main content
Vulnerability Database/CVE-2024-13307

CVE-2024-13307: Reales WP Theme Auth Bypass Vulnerability

CVE-2024-13307 is an authentication bypass vulnerability in Reales WP Real Estate WordPress Theme allowing unauthenticated attackers to delete files and modify favorites. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-13307 Overview

CVE-2024-13307 is a missing authorization vulnerability in the Reales WP - Real Estate WordPress Theme. The flaw affects all versions up to and including 2.1.2. Four AJAX functions lack capability checks: reales_delete_file, reales_delete_file_plans, reales_add_to_favourites, and reales_remove_from_favourites. Unauthenticated attackers can invoke these functions over the network to delete arbitrary WordPress attachments and manipulate favorite property listings for any user. The weakness is categorized under CWE-862: Missing Authorization.

Critical Impact

Unauthenticated remote attackers can delete arbitrary media attachments from the WordPress installation and tamper with any user's favorite listings, degrading data integrity across the site.

Affected Products

  • Reales WP - Real Estate WordPress Theme, all versions through 2.1.2
  • WordPress sites using the vulnerable theme without upstream patches
  • Multisite deployments running the theme on any subsite

Discovery Timeline

  • 2025-04-24 - CVE-2024-13307 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-13307

Vulnerability Analysis

The Reales WP theme registers four AJAX endpoints that perform state-changing operations without validating the caller's privileges. The functions reales_delete_file and reales_delete_file_plans remove attachment files from the WordPress media library. The reales_add_to_favourites and reales_remove_from_favourites functions modify favorite listing data associated with user accounts.

Because these handlers are exposed through both wp_ajax_ and wp_ajax_nopriv_ hooks and omit current_user_can() checks, any anonymous HTTP client can invoke them. An attacker who enumerates attachment IDs can iteratively delete media content, breaking property listings, image galleries, and other site assets. Manipulating favorites causes data loss and integrity issues in user profiles. See the Wordfence Vulnerability Analysis for additional technical context.

Root Cause

The root cause is a missing authorization check [CWE-862]. The AJAX handlers do not verify the caller's WordPress capabilities and do not enforce a valid nonce for privilege-bound actions. This design lets unauthenticated requests reach sensitive functions.

Attack Vector

Exploitation requires only network access to the site's admin-ajax.php endpoint. The attacker sends a crafted POST request specifying the vulnerable action parameter and the target attachment or favorite identifier. No authentication, user interaction, or elevated privileges are required. The vulnerability mechanism is described in prose only, as no verified proof-of-concept code is available in the referenced advisories.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2024-13307

Indicators of Compromise

  • Unauthenticated POST requests to /wp-admin/admin-ajax.php containing action=reales_delete_file, action=reales_delete_file_plans, action=reales_add_to_favourites, or action=reales_remove_from_favourites.
  • Unexpected deletions in the wp_posts table for entries with post_type = 'attachment'.
  • Missing files in wp-content/uploads/ that correlate with active property listings.
  • Unusual growth or churn in user favorites metadata for accounts that did not initiate the changes.

Detection Strategies

  • Enable WordPress audit logging for attachment deletions and correlate deletion events with the source IP and session state.
  • Deploy a web application firewall rule to flag unauthenticated AJAX calls to the four vulnerable action names.
  • Baseline the volume of admin-ajax.php requests and alert on spikes from single source addresses.

Monitoring Recommendations

  • Review web server access logs weekly for POST requests to admin-ajax.php originating from anonymous sessions.
  • Monitor filesystem changes under wp-content/uploads/ using integrity monitoring tools.
  • Track database row counts for the wp_posts attachment set and alert on unexpected decreases.

How to Mitigate CVE-2024-13307

Immediate Actions Required

  • Update the Reales WP - Real Estate WordPress Theme to a version later than 2.1.2 once the vendor publishes a fix.
  • Restrict access to admin-ajax.php for the four vulnerable action parameters at the WAF or reverse proxy layer.
  • Audit the WordPress media library and user favorites for unauthorized modifications since the theme was installed.

Patch Information

No fixed version is listed in the current NVD entry. Site owners should monitor the ThemeForest product page and the Wordfence advisory for patched releases. Until a patch is available, apply the workarounds below.

Workarounds

  • Add server-level rules that block unauthenticated POST requests carrying the four vulnerable action values.
  • Deactivate the Reales WP theme on sites where the affected functionality is not required.
  • Restore any missing attachments from backups and reset favorites data for impacted accounts.
bash
# Example NGINX rule to block unauthenticated exploitation attempts
location = /wp-admin/admin-ajax.php {
    if ($request_method = POST) {
        set $block 0;
        if ($request_body ~* "action=reales_(delete_file|delete_file_plans|add_to_favourites|remove_from_favourites)") {
            set $block 1;
        }
        if ($http_cookie !~* "wordpress_logged_in_") {
            set $block "${block}1";
        }
        if ($block = "11") {
            return 403;
        }
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.