salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.27k stars 2.03k forks source link

Filtering Bug (PHP Code Passed) #10386

Open juncelcarreon opened 3 months ago

juncelcarreon commented 3 months ago

Issue

I was copy pasting some PHP data beforehand and was trying to search for a Lead afterwards.

I was copying a lead name and immediately entered to search. What I checked by the time that it was already loading trying to search, is that in the input field the one that I copied is actually the PHP data I tried to copy beforehand

Expected Behavior

The behavior should have been this: image

Actual Behavior

The PHP Code that I accidentally copied is now the ones showing on the Lead List View Page. image

Possible Fix

For now the way I restored it is just use this URL: _http://mycrm.com/index.php?action=index&module=Leads&searchFormTab=advanced_search&query=true&clear_query=true_

Steps to Reproduce

  1. Goto any Module (Mine is the Leads)
  2. Click on the Filter
  3. Copy a certain code (Mine is a PHP Code) image

Context

I believe this is just a rarity (I think). Not really affecting me that much since I found a solution to reset it.

Your Environment

chris001 commented 3 months ago

The code must sanitize the user input in the search box. This is required to fix this code injection vulnerability.