Issue Bug Under Review

#111539Locked Install Tool throws RuntimeException instead of returning 403

Nikita Hovratov 11/23/26, 13:30 updated 11/23/26, 13:38

Description

Problem

If the Install Tool is locked (no ENABLE_INSTALL_TOOL file), any unauthenticated request can trigger an uncaught RuntimeException in TYPO3\CMS\Install\Middleware\Maintenance:

  • install[action]=showLogin -> RuntimeException(‘Not authorized’, 1505564888)
  • install[action]=checkLogin -> RuntimeException(‘Not authorized’, 1505563556)
  • install[action]=login -> RuntimeException(‘Not authorized’, 1505567462)

The action is read from the parsed body or the query string, so a plain GET request is enough.

This is not a security issue: the request is correctly denied. But the denial is reported as an exception, so it results in an HTTP 500 and ends up in exception logs and error monitoring (e.g. Sentry). Bots probing /typo3/install.php fill error monitoring with these events.

Steps to reproduce

1. Make sure no ENABLE_INSTALL_TOOL file exists (var/transient/, config/ or typo3conf/).
2. Open /typo3/install.php?install[action]=login (or showLogin / checkLogin).
3. An HTTP 500 is returned and “RuntimeException: Not authorized” is logged and reported.

Expected behaviour

A locked Install Tool is an expected state, not an error. The request should be denied with an HTTP 403 response without throwing an exception. This is how Maintenance::process() already handles a backend user whose maintainer rights were revoked (it returns new HtmlResponse(‘’, 403)).

Proposed solution

In Maintenance::process(), return a 403 response instead of throwing in the three branches above. The Install Tool UI is not affected: the JavaScript calls preAccessCheck first, which reports installToolLocked without throwing, so the UI never reaches these branches while the tool is locked.

Reviews 1

History 12

  1. Gerrit Code Review pushed patch set 1 for main to change 97893 status New Under Review 11/23/26, 13:37

  2. Nikita Hovratov changed description 11/23/26, 13:38