# Exploit Title: Relate Learning And Teaching system Version before 2024.1 Stored XSS  
# Date: 18/04/2024  
# Exploit Author: kai6u  
# Vendor Homepage:  
# Software Link:  
# Affected Version:before 2024.1 (  
# Fixed Version:2024.1 (  
# Tested on: Ubuntu 22.04  
# Summary:  
Stored XSS in Relate  
# Description:  
* 【Prerequisite】  
* The attacker has stolen the privilege to answer the exam content. For example, attacker is logged in as a student and have obtained Exam tickets to take the exam.  
* The exam is using the following question yaml file.  
* Stored XSS is performed when the payload is stored and the results are referenced when the exam content is submitted.  
1) First, Attacker answer question with below payload.  
* Paylod:   
* `<script>alert(1)</script>`  
2) Next, Course Administrator or Instructor logged in and check answer of this student.( with Exam Analytics view)  
* Access to quiz_start/inlinemultin url.  
3) Executed Payload and Alert was popped up.  
* An attacker can use this feature to force arbitrary requests via JavaScript on users who can view the results.( The content of the request to be enforced and the source code of the malicious JavaScript are described below. )  
# References