Submit #1049153: H.R. Shadhin / CloudSchool (GitHub: hrshadhin) CloudSchool v3.0.1 Stored Cross-Site Scripting (CWE-79)info

TitelH.R. Shadhin / CloudSchool (GitHub: hrshadhin) CloudSchool v3.0.1 Stored Cross-Site Scripting (CWE-79)
BeschreibungStored XSS in admin-managed website content, enabling superadmin session riding Severity (audit estimate): High (7.1 High) Repository: https://github.com/hrshadhin/school-management-system Affected version/commit: Not established; tested stack Laravel 6.18.38 / PHP 7.4.33 Disclosure: Private report draft; do not post publicly before coordination Endpoints: POST /event , POST /event/{id} (EventController@store/update). Same sink pattern for FAQ, About content, class profiles (Website permission group). Method / Role: POST / any user holding the Website permission (the standard Admin role holds 181/194 permissions including Website; roles 2–7 do not). Source files: app/Http/Controllers/Backend/EventController.php:20-87,90-170 — $data = $request->all(); Event::create($data) resources/views/frontend/event_details.blade.php:52,57 — {!! $event->description !!} resources/views/frontend/event.blade.php:55,60 Confirmed: Yes — dynamically , payload verified in raw server-rendered output; test record removed after capture. Description Admin-managed rich-text fields (event descriptions, FAQ answers, About content, class profiles) are stored without any server-side sanitization and are rendered on public, unauthenticated pages using Blade's unescaped {!! !!} operator. An Admin-role user (below superadmin) can therefore plant persistent JavaScript that executes in the browser of every visitor of the school's public website — including the superadmin. Because the backend pages expose a CSRF meta tag readable by scripts, the payload can issue authenticated state-changing requests as the victim, escalating to full superadmin takeover. It also enables mass visitor compromise (defacement, malware delivery) with zero interaction beyond visiting the page. Taint trace POST /event (admin session) → EventController@store() → $data = $request->all() (line 48) description passes validation ( 'description' => 'required' — no sanitization, line 43) → Event::create($data) (line 83) → stored in events.description GET /events-details/{slug} (unauthenticated) → HomeController@eventDetails → frontend/event_details.blade.php:57 → {!! $event->description !!} — raw HTML inside Also rendered (first 80 chars) on the public listing GET /events via {!! substr($event->description,0,80) !!} Same unescaped-sink pattern exists for: {!! $event->cover_video !!} (attacker-controlled embed code), FAQ answers {!! $qa->a !!} , About content {!! $aboutContent->key_point_*_content !!} / intro_video_embed_code , and class-profile description / outline . Proof of concept PoC 1 — Store XSS via event description (as Admin) POST /event (authenticated as demo Admin, multipart/form-data) _token=<REDACTED-CSRF> &title=XSS Audit POC Event 9f3a &event_time=19/10/2026 10:00 am &description=<p>benign intro</p><img src=x onerror="window.__XSS_AUDIT_POC_9f3a=1"><p>benign end</p> &tags=poc → HTTP 500 (unrelated pre-existing date-cast bug in the save path) → record nevertheless persisted (id=3) mysql> select id,title,slug from events where title like '%9f3a%'; 3 XSS Audit POC Event 9f3a xss-audit-poc-event-9f3a PoC 2 — Trigger as any unauthenticated visitor GET /events-details/xss-audit-poc-event-9f3a → HTTP 200 grep -c 'window.__XSS_AUDIT_POC_9f3a=1' → 1 (raw payload present, unescaped) grep -o '.{60}window.__XSS_AUDIT_POC_9f3a=1.{20}' → ...benign intro</p><img src=x onerror="window.__XSS_AUDIT_POC_9f3a=1"><p>benign end... grep -c '&lt;img src=x onerror' → 0 (NOT escaped) GET /events (public listing) → payload also present, unescaped Assessment note: Confirmed: attacker-controlled HTML is emitted verbatim in the HTML body of public pages — an executable XSS context. Impact chain to superadmin takeover documented in the report's exploitation notes.
Quelle⚠️ https://github.com/hrshadhin/school-management-system/issues/276
Benutzer
 ChetanPujari (UID 101747)
Einreichung21.10.2026 08:04 (vor 30 Tagen)
Moderieren19.11.2026 22:43 (30 days later)
StatusAkzeptiert
VulDB Eintrag440883 [hrshadhin CloudSchool bis 3.0.1 Admin Content Management EventController.php EventController@store data Cross Site Scripting]
Punkte20

Do you need the next level of professionalism?

Upgrade your account now!