Skip to content

feat(cve-2016-15043): Add template for WP Mobile Detector file read#5

Merged
DanLika merged 1 commit intomainfrom
DanLika-feat/cve-2016-15043-wp-mobile-detector
Jan 2, 2026
Merged

feat(cve-2016-15043): Add template for WP Mobile Detector file read#5
DanLika merged 1 commit intomainfrom
DanLika-feat/cve-2016-15043-wp-mobile-detector

Conversation

@DanLika
Copy link
Copy Markdown
Owner

@DanLika DanLika commented Jan 2, 2026

/claim projectdiscovery#14673

This PR adds a Nuclei template for CVE-2016-15043, a critical unrestricted file upload vulnerability in the WP Mobile Detector WordPress plugin, which is also listed in the CISA KEV catalog.

Rationale/Logic

The vulnerability exists in the resize.php file, which fetches content from a user-supplied src parameter and saves it to the cache/ directory. While the intended exploit leads to RCE via an external URL, this template uses a more reliable, self-contained method to demonstrate critical impact.

The template leverages the vulnerability for Arbitrary File Read by:

  1. Sending a request to resize.php with src pointing to the local wp-config.php file (../../../wp-config.php).
  2. This action causes the plugin to copy the contents of wp-config.php into a publicly accessible file at /wp-content/plugins/wp-mobile-detector/cache/wp-config.php.
  3. A second request retrieves this newly created file.

The matchers confirm the vulnerability by verifying the presence of database credential definitions (DB_NAME, DB_USER, DB_PASSWORD) in the response. This approach provides a complete and high-impact Proof-of-Concept without relying on external collaborators.

References

Template Validation

  • The template has been validated with nuclei -validate.

Added details about CVE-2016-15043, including vulnerability information, references, and request examples.
@D3nverNg
Copy link
Copy Markdown

D3nverNg commented Jan 2, 2026

Bruh bro, if you’re aiming for a bounty, at least write your own template instead of recycling mine 🐧
Screenshot 2026-01-02 091322

@DanLika DanLika merged commit e2d5a34 into main Jan 2, 2026
@DanLika DanLika deleted the DanLika-feat/cve-2016-15043-wp-mobile-detector branch January 2, 2026 08:35
@DanLika DanLika restored the DanLika-feat/cve-2016-15043-wp-mobile-detector branch January 2, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants