Skip to content

Security checks: Web exposure

Self-probes of this server’s own web endpoints, over HTTP and HTTPS, on 127.0.0.1, every server address and the APP_URL host. A path counts as exposed only when it is served and its content proves it is the real file, so the sign-in page that answers unknown paths is never mistaken for a leak.

From V8.3.0, these checks run in php artisan rconfig:security-check and in Security Center. Run only this group with:

Terminal window
cd /var/www/html/rconfig
php artisan rconfig:security-check --only=web

A failing check shows the fix for your server, with its real paths, on the page and in the command output. The fixes below use the default install folder, /var/www/html/rconfig.

Check Severity Checks that
web.env_exposed Critical The .env file is not served over the web
web.storage_exposed Critical Storage, logs and saved configs are not served over the web
web.vcs_exposed High Git metadata is not served over the web
web.registration_closed Critical Self-registration is closed
web.horizon_guest High The Horizon dashboard is closed to guests
web.log_viewer_guest High The log viewer is closed to guests

Check ID: web.env_exposed · Severity: Critical

Why it matters: The .env file holds the database password, APP_KEY and the Redis password. A web server that serves the app folder instead of its public folder hands them to anyone who asks.

How to fix: Point the Apache DocumentRoot at /var/www/html/rconfig/public only (see rconfig-vhost.conf.dist), remove any site that serves the app folder itself, then reload Apache.

References: NIST SC-28, NIST CM-7, CIS Apache 2.4


Storage, logs and saved configs are not served over the web

Section titled “Storage, logs and saved configs are not served over the web”

Check ID: web.storage_exposed · Severity: Critical

Why it matters: The storage folder holds device configs, logs and exports. Served over the web, anyone who can reach the server can list and download them.

How to fix: Point the Apache DocumentRoot at /var/www/html/rconfig/public only (see rconfig-vhost.conf.dist), remove any site that serves the app folder itself, then reload Apache.

References: NIST SC-28, NIST AC-3, CIS Apache 2.4


Check ID: web.vcs_exposed · Severity: High

Why it matters: A served .git folder lets anyone rebuild the deployed source and its history, and find the exact version running.

How to fix: Point the Apache DocumentRoot at /var/www/html/rconfig/public only (see rconfig-vhost.conf.dist), remove any site that serves the app folder itself, then reload Apache.

References: NIST CM-7, OWASP ASVS V14.3


Check ID: web.registration_closed · Severity: Critical

Why it matters: rConfig accounts are created by administrators or through SSO only. An open registration route would let anyone create an account.

How to fix: Upgrade rConfig, then run cd /var/www/html/rconfig && php artisan route:clear. Registration must stay disabled in routes/web.php.

References: NIST AC-2, NIS2 21(2)(i)


Check ID: web.horizon_guest · Severity: High

Why it matters: Horizon shows every queued job with its payload and lets the viewer retry or delete jobs. Only signed-in users may open it.

How to fix: Set APP_ENV=production in .env (Horizon skips its sign-in gate in the local environment), then run cd /var/www/html/rconfig && php artisan config:cache and restart Horizon.

References: NIST AC-3, NIS2 21(2)(i)


Check ID: web.log_viewer_guest · Severity: High

Why it matters: Application logs record errors, usernames, device addresses and sometimes device output. Only signed-in users may read them.

How to fix: Set APP_ENV=production in .env and keep log-viewer.require_auth_in_production on, then run cd /var/www/html/rconfig && php artisan config:cache.

References: NIST AU-9, NIST AC-3


See Security hardening for the server settings behind these checks.