Unhandled PHP Exception (InvalidArgumentException) On Invalid Task Routing - Question | JoomShaper

Unhandled PHP Exception (InvalidArgumentException) On Invalid Task Routing

A

André Figueiredo

SP Page Builder 3 days ago

Hi SP Page Builder Support Team,

I am writing to report an unhandled PHP exception that my security tool (Admin Tools) recently caught on my website.

While I believe this was triggered by an automated bot scanning for vulnerabilities, the component is throwing a 500 PHP Exception with a full stack trace instead of gracefully returning a 404 (Not Found) or 403 (Forbidden) error. Catching invalid tasks would prevent server path disclosure and reduce unnecessary error log spam.

Environment details:

Joomla! Version: 6.1.2

SP Page Builder Version: 6.6.2

The Issue: A GET request was made to the following URL: /?option=com_sppagebuilder&task=icon.upload

This resulted in the following Exception: Message: Invalid Controller: name='icon', format='' Type: InvalidArgumentException File: /libraries/src/MVC/Controller/BaseController.php

Could you please pass this to the development team so they can add a proper catch/validation for invalid tasks in the component's routing?

Thank you for your time and for the great work on the component.

0
1 Answers
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 day ago #228531

Hi André,

Thank you for taking the time to report this and for providing such a detailed explanation.

We have passed your report and suggestion to our development team for review. They will evaluate whether invalid task requests can be handled more gracefully to improve the overall behavior and reduce unnecessary exception logging.

We appreciate your feedback and your efforts to help improve SP Page Builder.

Best regards,

0