Project

General

Profile

Actions

Todo #15893

closed

Limit PHP request order processing to only GET and POST

Added by Jim Pingle 9 months ago. Updated 12 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
PHP Interpreter
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
25.07
Release Notes:
Default

Description

Currently pfSense software does not define a value for request_order in php.ini, so it defaults to variables_order which is set to "GPCS". This sets $_REQUEST values first from GET parameters, then POST parameters, then cookie values, then session data.

There do not appear to be any areas in pfSense software base code or packages which utilize $_REQUEST for anything other than GET or POST, so it should be safer to limit the request order to only GET and POST.

This should also address issues users have seen with cookie data interfering in the past, such as #11268, which should be re-tested after this change.


Related issues

Related to Bug #11268: Cookie named ``id`` prevents some forms from being loaded or saved properlyResolvedJim Pingle01/20/2021

Actions
Actions #2

Updated by Jim Pingle 9 months ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100
Actions #3

Updated by Jim Pingle 8 months ago

  • Plus Target Version changed from 25.01 to 25.03
Actions #4

Updated by Jim Pingle 8 months ago

  • Status changed from Feedback to Resolved

Working as expected in latest snapshots, $_REQUEST is only populated with data from GET or POST, cookie values are ignored.

Actions #5

Updated by Jim Pingle 8 months ago

  • Related to Bug #11268: Cookie named ``id`` prevents some forms from being loaded or saved properly added
Actions #6

Updated by Jim Pingle about 2 months ago

  • Plus Target Version changed from 25.03 to 25.07
Actions #7

Updated by Jim Pingle 12 days ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF