Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 9d 01h 46m 22s
Claim 50% off
Awaiting an answer SP Page Builder Joomla 6 v6.10.0

SP Page Builder returns HTTP 500 instead of 404 for unknown frontend tasks

Asked by Heiling Zsolt 17 minutes ago

On my Joomla site, where the home page is an SP Page Builder page, requests with an unknown task parameter return HTTP 500 instead of HTTP 404.

Setup: SP Page Builder 6.10.0, Joomla 6.2.0, PHP 8.4, on a local copy of a production site. I also reproduced this earlier with SP Page Builder 6.9.0 and Joomla 6.1.3.

Steps to reproduce:

  1. Set an SP Page Builder page as the default menu item (home page).
  2. Request /?task=profiles.import, or send a POST request with task=profiles.import in the body. A made-up value such as /?task=foo.bar behaves the same way.

Actual result: HTTP 500, error code 0, with Joomla's "invalid controller" message (name='profiles', format=''). The entry file components/com_sppagebuilder/sppagebuilder.php calls the legacy BaseController::getInstance('Sppagebuilder'). Joomla throws an InvalidArgumentException without a code in libraries/src/MVC/Controller/BaseController.php, line 343, resulting in HTTP 500.

Expected result: HTTP 404, as returned by Joomla core components. The same request on a com_content article returns 404 with Joomla's "invalid controller class" message.

Automated scanners send this request targeting a JCE editor endpoint, causing these probes to appear as server errors in monitoring and security-extension exception alerts. As far as I can see, no component code runs beyond this point, so I am reporting an incorrect status code, not a security issue.

Could you fix this by catching the InvalidArgumentException around getInstance() and rethrowing it with code 404, or by moving the frontend to the modern component dispatcher? The latter already throws this case with code 404 in libraries/src/Dispatcher/ComponentDispatcher.php, line 174. These are proposed fixes; I have not reported testing either change.

Log in to reply.