Persistent Cross Site Scripting - LayoutEditor Module - Settings in yetiforcecompany/yetiforcecrm

Valid

Reported on

Aug 19th 2022


Description

The application uses Purifier to avoid the Cross Site Scripting attack. However, On LayoutEditor module from Settings, the type of fieldModel->label parameter is "Text" but it is not validated and it's used directly without any encoding or validation on LayoutEditor/EditField.tpl. It allows attacker to inject arbitrary Javascript code to perform an Stored XSS attack.

Proof of Concept

  1. 1- Login to the application
  2. 2- Access the LayoutEditor Module via the following URL:
  3. https://gitstable.yetiforce.com/index.php?module=LayoutEditor&parent=Settings&view=Index
  4. 3- Click to the button "Edit", Change the value of "label" parameter with the following payload:
LayoutEditor" onfocus="alert(document.domain)" autofocus ""="

**Inject the payload Payload

PoC

PoC Video

https://drive.google.com/file/d/1TCHCCuLC_3pJ9VMaDvRWmlab58eOY8aI/view?usp=sharing

Impact

An XSS attack allows an attacker to execute arbitrary JavaScript in the context of the attacked website and the attacked user. This can be abused to steal session cookies, perform requests in the name of the victim or for phishing attacks.

We are processing your report and will contact the yetiforcecompany/yetiforcecrm team within 24 hours. a month ago
thanhlocpanda modified the report
a month ago
We have contacted a member of the yetiforcecompany/yetiforcecrm team and are waiting to hear back a month ago
thanhlocpanda modified the report
a month ago
thanhlocpanda modified the report
a month ago
We have sent a follow up to the yetiforcecompany/yetiforcecrm team. We will try again in 7 days. a month ago
thanhlocpanda modified the report
a month ago
Radosław Skrzypczak validated this vulnerability a month ago
thanhlocpanda has been awarded the disclosure bounty
The fix bounty is now up for grabs
The researcher's credibility has increased: +7
We have sent a fix follow up to the yetiforcecompany/yetiforcecrm team. We will try again in 7 days. 25 days ago
We have sent a second fix follow up to the yetiforcecompany/yetiforcecrm team. We will try again in 10 days. 18 days ago
We have sent a third and final fix follow up to the yetiforcecompany/yetiforcecrm team. This report is now considered stale. 8 days ago
thanhlocpanda
4 days ago

Researcher


Hi @admin, the bug has been fixed by @rskrzypczak, please help me review and publish the CVE. You can check with the following commit: https://github.com/YetiForceCompany/YetiForceCRM/commit/eebc12601495ada38495076bec12841b2477516b#diff-09030a439bec9e66dd7a588b2558d8b88ab84cf9ecf03c5de96a042f1be1b332

Radosław Skrzypczak confirmed that a fix has been merged on eebc12 3 days ago
The fix bounty has been dropped
EditField.tpl#L41 has been validated
to join this conversation