Persistent Cross-site Scripting - SlaPolicy Module - Settingss in yetiforcecompany/yetiforcecrm

Valid

Reported on

Aug 19th 2022


Description

The application uses Purifier to avoid the Cross Site Scripting attack. However, On SlaPolicy module from Settings, the type of recordModel->name parameter is "Text" but it is not validated and it's used directly without any encoding or validation on SlaPolicy/EditViewBlocks.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 SlaPolicy Module (Add) via the following URL:
  3. https://gitstable.yetiforce.com/index.php?module=SlaPolicy&parent=Settings&view=Edit
  4. Or Access the SlaPolicy Module (Edit) via the following URL:
  5. https://gitstable.yetiforce.com/index.php?module=SlaPolicy&parent=Settings&view=Edit&record={id}
  6. 3- Access the first URL or Change the {id} of the second URL with the valid recordID. Change the value of "name" parameter with the following payload:
SlaPolicy" onfocus="alert(document.domain)" autofocus ""="

**Inject the payload Payload

PoC

PoC Video

https://drive.google.com/file/d/1n9KjI-B315MeJ39rt0N9lc4nl0f-3pW7/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/e55886781509fe39951fc7528347696474a17884#diff-c97e017ca1714bc40f3639b350be90ad65fd808513b4c8b61bcef7afa52dc0a1

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