Cross-site Scripting (XSS) - Stored in yeswiki/yeswiki


Reported on

Oct 5th 2021


Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into websites. An attacker can use XSS to send a malicious script to an unsuspecting user. The end user’s browser has no way to know that the script should not be trusted, and will execute the script. is vulnerable to XSS as shown below:

Proof of concept

Vuln variable: $_POST['name']

        echo ' — '.$this->user->getProperty('name');
        $href = $this->href('', '', 'user='.$this->user->getProperty('name').'&from='.$referrer, false);
                    'name'              => trim($_POST['name']),
                    'email'             => trim($_POST['email']),

The name parameter is stored and printed without processing.


Without login go to http://localhost/yeswiki-doryphore/?ParametresUtilisateur to create a new account.
In the "Votre nom d'utilisateur, utilisatrice" insert the following:

poc<img src=x onerror=alert`xss`>

Fill the aditional fields
Clic in new account
Observe the XSS


Because it thinks the script came from a trusted source, the malicious script can access any cookies, session tokens, or other sensitive information retained by the browser and used with that site. These scripts can even rewrite the content of the HTML page.

We have contacted a member of the yeswiki team and are waiting to hear back a year ago
Jérémy Dufraisse validated this vulnerability a year ago
hitisec has been awarded the disclosure bounty
The fix bounty is now up for grabs
Jérémy Dufraisse marked this as fixed with commit 113408 a year ago
Jérémy Dufraisse has been awarded the fix bounty
This vulnerability will not receive a CVE
to join this conversation