EasyCloud Exposure Audit

By easycloudsolutions

0+ active installationsVersion 1.0.4

Finds downloadable backups and other classic exposures, hardens what a plugin safely can, and writes the exact server rule for what it can't.

Description

Exposure Audit is honest about what a PHP plugin can and cannot enforce.

Enforced by the plugin

These requests pass through WordPress, so Exposure Audit blocks them directly:

  • Disable XML-RPC and pingbacks. Requests to xmlrpc.php are stopped before the rest of WordPress loads.
  • Block ?author=N username discovery, hide the REST users endpoint from visitors, drop the users sitemap, and remove author details from oEmbed responses.
  • Send security headers: X-Content-Type-Options, X-Frame-Options and Referrer-Policy.
  • Remove the WordPress version tag.
  • Disable the built-in plugin and theme file editors. Updates still work.
  • Show one generic login error instead of hints about which part was wrong.

Found, for you to remove

Stray copies such as wp-config.php.bak or wp-config.txt, a public
debug.log, and readme.html are reported with their location. Exposure Audit
never deletes or changes a file. Remove them over SFTP or with your host’s
file manager, then click Scan again.

Found, with a ready-to-paste server rule

nginx serves static files without running PHP, so no plugin can block them.
Exposure Audit doesn’t pretend otherwise. It finds these exposures and writes the rule
for your server:

  • Backup archives that download over the web, from UpdraftPlus, Duplicator, All-in-One WP Migration and BackWPup.
  • PHP files with code-execution patterns in the uploads folder.
  • A public .git folder.
  • Directory listings.

Exposure Audit tests backup folders by requesting a real file inside them, not the
folder. A blank index.html can make a folder look safe while its archives
still download by name.

Before trusting any result, Exposure Audit requests a core WordPress file that is
always public. If that request fails, or a CDN or firewall answers it with an
error, every web check is marked unknown. Exposure Audit never reports a clean result
for a check it couldn’t run.

Installation

  1. Install and activate the plugin.
  2. Open Tools > EasyCloud Exposure Audit to see the scan.
  3. Review the runtime hardening options. All are on by default.
  4. If the scan shows a server rule, paste it into your nginx or Apache config, then click Scan again.

FAQ

Will disabling XML-RPC break anything?

It stops the WordPress mobile app, Jetpack’s older connection features and
other tools that publish over XML-RPC. Turn the option off if you use them.

Why can’t Exposure Audit block backup files itself?

On nginx, and on Apache for files that exist on disk, the web server returns
static files without running WordPress. Only a server rule can block them.

Why doesn’t Exposure Audit delete stray files for me?

It reports them and leaves every file alone. Deleting files in the WordPress
root is a job for an administrator who can see what the file is. Remove the
file over SFTP or with your host’s file manager, then click Scan again.

How often does the scan run?

When you open the screen, and then at most once every 15 minutes. The screen
shows how old the result is. Click Scan again for a fresh one, for example
after you add a server rule or remove a file.

Does the scan send data anywhere?

No. Every request goes from your site to its own public URLs, and no scan
data is sent to any third party. On a site behind a CDN, those requests pass
through the CDN like a normal visit.

The scan says “unknown”. What does that mean?

Your host, CDN or firewall blocks the site from requesting its own URLs.
When a CDN or firewall answered, the scan shows the HTTP status it got. Exposure Audit can’t see what visitors
see, so it reports the check as not run. Allow requests from the server to
itself, then scan again.

A check is also “unknown” when the file’s address redirects somewhere else.
The file may be public at the new address, so Exposure Audit names the address and
leaves the verdict to you.

The same goes for a file that WordPress serves from another host, such as a
CDN, for a folder PHP cannot read, and for an uploads folder too large to scan
in full. Exposure Audit only requests your site’s own addresses.

Changelog

1.0.4

  • New: the scan result is kept for 15 minutes, with a Scan again button. Opening the screen no longer runs the full scan every time.
  • Change: option titles and status words on the screen can be translated.
  • Change: Exposure Audit no longer deletes files. Stray wp-config copies, a public debug.log and readme.html are reported for an administrator to remove.
  • Fix: BackWPup backup folders are found in BackWPup 5’s folder layout as well as the older one, and when the uploads folder is in a custom location. The server rule covers them there.
  • Fix: the scan only requests your site’s own addresses. When WordPress serves the uploads or content folder from another host, it checks this server’s own copy or reports the check as unknown, and it no longer writes an uploads rule that could match the whole site.

1.0.3

  • Change: the plugin is now named EasyCloud Exposure Audit. Checks and hardening are unchanged.

1.0.2

  • Fix: when an address keeps redirecting to itself, the scan result now says so. Before, it said the request went to another address.

1.0.1

  • Security: the author block now covers POST requests and values such as 1,2. oEmbed responses no longer name the author to visitors.
  • Security: the scan follows a redirect only on the same host and path. Any other redirect is reported as “unknown” instead of OK.
  • Security: on multisite, deleting files needs a network administrator.
  • Fix: the uploads scan counts only PHP-like files toward its limit, and reports “unknown” when the folder is too large to finish.
  • Fix: a file starting with <?php die; is treated as harmless only when it really halts at once.
  • Fix: the server rules also deny .pht files in uploads.

1.0.0

  • Initial release: runtime hardening, exposure scan with one-click removal of stray files, and server rules for static exposures.