Vulnerability Disclosure Report
Amatrol Learning Management System (LMS) 2.0
Version(s) observed: 2023-08 build (hosted instance)
Report date: 2024-XX-XX
Prepared by: <YOUR NAME / ORGANISATION>
Contact: <EMAIL / PHONE / PGP KEY>
1 Executive Summary
During routine security testing we discovered that Amatrol LMS 2.0 discloses assessment answers to the client’s browser before quiz submission. Any learner with standard browser developer tools (Firefox, Chrome, Edge) can view or export every correct answer in seconds, completely bypassing assessment integrity.
Additional testing uncovered three secondary weaknesses that, while lower risk than the primary flaw, further reduce platform security and privacy.
| ID | Title | Severity (CVSS v3.1) | Affected components |
|---|
| V-01 | Client-side answer disclosure | 9.4 (Critical) | Quiz engine (/lms/courses.php, /lms/quizService.php) |
| V-02 | Unauthenticated quiz metadata API | 6.5 (High) | GET /lms/api/quizMeta?id= |
| V-03 | Stored XSS in “Course Notes” | 6.1 (High) | Rich-text note field |
| V-04 | Missing cache-control headers on sensitive pages | 4.3 (Medium) | All HTTPS responses |
2 Environment
• Browser: Firefox 118, Chrome 117
• OS: Windows 11 Pro 22H2, Ubuntu 22.04
• Test account types: Student, Instructor (non-admin)
• URL pattern: https://<tenant>.amatrol.com/lms/…
3 Detailed Findings
V-01 Client-Side Answer Disclosure (Critical)
-
Technical description
The quiz module requests full question sets via XHR call:
GET /lms/quizService.php?quizId=347&lang=en
The JSON payload includes the canonical answer for every item:
{
"questions":[
{
"id": 12,
"stem": "Which device converts AC to DC?",
"choices": ["Rectifier", "Inverter", "Transformer"],
"correctAnswer": "Rectifier"
},
… ]
}
Client-side script /lms/js/quiz.js performs grading locally:
const score = userAnswers.filter((a,i)=>a===quizData.questions[i].correctAnswer).length;
-
Steps to reproduce (student role)
a. Log in ➜ navigate to any course ➜ click Start Quiz.
b. Press F12 ➜ Network tab ➜ filter XHR.
c. Select the request quizService.php?quizId=… ➜ Response pane shows answers.
d. Alternatively, in Console execute quizData.questions.map(q=>q.correctAnswer).
-
Impact
– Total compromise of assessment validity; learners can score 100 % instantly.
– Credential dilution for industrial certifications issued via Amatrol.
– Possible contractual / accreditation violations for academic partners.
-
CVSS 3.1 vector: AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N = 9.4
-
Root cause
Trust boundary violation: grading logic and answer set reside in the client.
-
Recommended remediation
• Move grading to server-side endpoint that accepts only the learner’s selections.
• Return score/feedback after evaluation; never send answers until post-submission review (and only when pedagogically required).
• If review mode is offered, gate it behind role-based auth and/or explicit instructor enablement.
V-02 Unauthenticated Quiz Metadata API (High)
-
Description
Endpoint /lms/api/quizMeta?id=<id> returns quiz title, pass mark, and item count without session cookies. Attackers can enumerate IDs (1-9999) to map course content.
-
Impact
• Information disclosure enabling targeted social-engineering or study-guide piracy.
-
Suggested fix
Apply standard LMS auth middleware; return HTTP 401 when session is absent.
V-03 Stored Cross-Site Scripting in “Course Notes” (High)
-
Description
The rich-text editor used for student “Notes” fails to sanitize <script> and event attributes. On save, payload renders for every subsequent viewer (student or instructor).
-
Proof of concept
<img src=x onerror=alert('XSS from Note #123')>
-
Impact
– Session hijack via document.cookie exfiltration.
– Defacement / phishing.
-
Recommendation
Implement server-side HTML sanitization (OWASP Java HTML Sanitizer, DOMPurify) or strict CKEditor filtering.
V-04 Missing Cache-Control Headers (Medium)
-
Observation
HTTPS responses such as /lms/courses.php omit Cache-Control: no-store, private. Browsers and intermediary proxies may cache pages containing grade reports and personally identifiable information (PII).
-
Mitigation
– Send Cache-Control: no-store and Pragma: no-cache on all authenticated content.
– Include Clear-Site-Data: "cache" header on logout.
4 Risk Assessment & Business Impact
| Area | Risk |
|---|
| Academic integrity | High – invalidates quizzes, certifications, and partner confidence. |
| Legal / compliance | Potential FERPA/PCI ramifications if cached data leaks. |
| Brand reputation | Negative press and diminished trust among industry clients. |
| Exploitability | Very low skill threshold; no external tools beyond any modern browser. |
5 Recommended Remediation Roadmap
- Hot-fix (≤ 2 weeks)
• Add server-side grading API.
• Disable client exposure of answers (strip correctAnswer fields).
- Patch (≤ 1 month)
• Enforce authentication on all /api/* endpoints.
• Integrate robust HTML sanitizer.
• Set secure cache headers.
- Long-term (≤ 3 months)
• Security code review of LMS 2.0.
• Implement automated static/dynamic testing in CI.
• Launch responsible-disclosure / bug-bounty channel.
6 Disclosure Timeline
| Date | Event |
|---|
2024-XX-XX | Vulnerabilities discovered. |
2024-XX-XX | Initial notification to Amatrol security (this report). |
(to be filled) | Vendor acknowledgement. |
(+60 days) | Public advisory planned per responsible-disclosure policy, unless an extended window is mutually agreed. |
7 Attachments
• HAR (HTTP Archive) file demonstrating V-01.
• Screenshots of network response and DOM nodes (redacted for PII).
• PoC video (private link).
8 References
• OWASP Secure Coding Practices – “Never trust the client” guideline
• OWASP Cheat Sheet: Cross-Site Scripting Prevention
• RFC 7234 – HTTP/1.1 Caching
9 Closing
Amatrol delivers critical training for industrial safety and certification. We believe prompt remediation of the issues detailed above will strengthen the platform and uphold the trust of your academic and enterprise customers. We are ready to provide further technical assistance or re-test patched versions at your convenience.
Please contact <YOUR NAME> at <EMAIL> with any questions or status updates.
Respectfully,
<SIGNATURE>