Filtering Bug (PHP Code Passed) #5178

Open
opened 2026-02-20 16:30:59 -05:00 by deekerman · 1 comment
Owner

Originally created by @juncelcarreon on GitHub (Mar 28, 2024).

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

  • SuiteCRM Version used: 7.11.21
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome
  • Environment name and version (e.g. MySQL, PHP 7): 7.4.27
  • Operating System and version (e.g Ubuntu 16.04): CentOs 7
Originally created by @juncelcarreon on GitHub (Mar 28, 2024). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> 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 <!--- Tell us what should happen --> The behavior should have been this: ![image](https://github.com/salesagility/SuiteCRM/assets/116038186/ab5ef18f-b47d-4b61-afa0-0c27284e4222) #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> The PHP Code that I accidentally copied is now the ones showing on the Lead List View Page. ![image](https://github.com/salesagility/SuiteCRM/assets/116038186/ec6118f5-8e7e-4ae5-8a4d-1812fb805e96) #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> 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 <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Goto any Module (Mine is the Leads) 2. Click on the Filter 3. Copy a certain code (Mine is a PHP Code) ![image](https://github.com/salesagility/SuiteCRM/assets/116038186/348c21e5-3a4d-4632-8aff-9be70015d1ac) #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> 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 <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: **7.11.21** * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): **Chrome** * Environment name and version (e.g. MySQL, PHP 7): **7.4.27** * Operating System and version (e.g Ubuntu 16.04): **CentOs 7**
Author
Owner

@chris001 commented on GitHub (Mar 28, 2024):

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

@chris001 commented on GitHub (Mar 28, 2024): The code must sanitize the user input in the search box. This is required to fix this code injection vulnerability.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5178
No description provided.