Application security / Practical guide
Close setup routes after installation
By OfRoot Technology · · Sources checked
A practical check for setup endpoints that should stay closed once your application is running.
The short version
Map the routes that can initialize an application, write its configuration or create its first administrator. After setup is complete, verify that unauthorized requests cannot reopen those paths. Use an isolated copy and synthetic data, check expected failures as well as normal operation, and confirm the protection survives deployment.
Find the paths that can initialize the application
Drupal’s installer advisory is one reason to review this boundary. The method below is OfRoot’s broader engineering guidance; it does not claim that other frameworks have the same vulnerability.
Choose one application and list its browser installer, initialization API, configuration writer and first-administrator flow. Record which paths are needed only during provisioning and which maintenance tasks must remain available. Include aliases, redirects and any alternate route to the same handler.
Use an isolated copy before changing anything
Setup checks can alter databases, configuration and accounts. Agree on the test scope and use an isolated environment with synthetic data, test credentials and a recoverable starting point. Keep production services and customer records out of the experiment.
Define the expected result before each check: setup is complete, an unauthorized request is denied, configuration stays unchanged and the normal application still works. Record any check that cannot safely be performed as unverified.
Enforce the boundary on the server
A hidden setup link does not prevent a direct request. Check the server or gateway rule and the application’s own decision about who may initialize it. OWASP’s guidance is to deny access by default and validate permission on every request.
For Drupal, use its current installer guide rather than a broad rule that also blocks required maintenance. The guide checks /core/install.php, the /install.php redirect and suffix paths such as /core/install.php/foo. These should end in a 403 or 404 response while the site and approved database updates still work.
[3] Drupal: Securing the installer, updated November 27 ↗ [4] OWASP Authorization Cheat Sheet ↗
Check what happens when a dependency fails
In the isolated copy, use the test environment’s controls to simulate an unavailable database or configuration service. Confirm the application returns an appropriate failure and keeps setup closed. A lookup error should not be treated as proof that a new installation is permitted.
Repeat the check for the relevant roles and entry paths, then restore the dependency and verify normal use. This is a general test of safe failure behavior, not a statement about the specific conditions behind the Drupal vulnerability.
Make the protection survive the next release
Check the deployed artifact and hosting configuration, not only a developer’s local rule. Drupal’s current guide recommends removing the installer file and blocking it at the web server because the two controls cover different failure modes. It warns that dependency or scaffold operations can restore installer files or replace manual configuration edits.
Repeat the narrow checks after an ordinary deployment in the test environment. Confirm that the intended installer restrictions remain and that authorized maintenance still succeeds. Keep a rollback path that restores service without reopening public setup.
Leave a clear result for the application owner
Record the tested version, environment, routes, roles, expected responses and observed result. Note whether configuration or account state changed and keep evidence free of live secrets and customer data.
Give each unresolved path an owner and next action. Passing this review supports one access-control decision; it does not establish that the entire application is secure. Include setup and maintenance boundaries in a wider application-security engagement when they affect the risk you need to assess.
Sources and further reading
Follow the security developments behind the work.
CISA lists Drupal installer flaw as exploited →Need a review, a penetration test or help fixing findings?
Explore application security →