RSS Feed/News Add-on install/upgrade in the admin panel does not enforce requirement errors on POST

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
34,694
Points
823

Reputation:

The add-on install and upgrade confirmation pages list requirement errors (for example "requires PHP 7.4.0+") and offer no submit button. But the controller never checks those errors when the form is submitted, so a POST to the same URL installs or upgrades the add-on anyway.

In XF\Admin\Controller\AddOnController, actionInstall() and actionUpgrade() both start with:

PHP:

Code:
[$warnings, $errors] = $this->getAddOnWarningsAndErrors($addOn);

if ($this->isPost())
{
    // ...

Read more

Continue reading...
 
Status
Not open for further replies.
Top