Build log · Software & apps

Island Python — I audited my school’s Python app, then rebuilt it with every class open

Software & appsdone1 versionssecurity auditfirestore rulessingle file88 KB100 puzzlesPyodide 0.27.2

reflection not written yet · every fact below is generated from this project’s own spec and files

What it is

My school teaches Python through a Firebase app: 100 puzzles, a six character class code, a teacher queue that verifies submissions, a league table. I read it with my own student account and found the rules solid but the edges soft: 11 course lab pages are public static files anyone can open without logging in, the class code is not random at all but computed from the class document id, any signed in student can test codes silently, the “class” league table is school wide, and the puzzle check compares output strings so print(4) passes puzzle one. So I rebuilt it: one 88 KB HTML file, all 100 puzzles extracted from the production bundle, real Python in the browser, every class public, and a superadmin page. No school email, no SSO.

Version history

Straight from the project’s own card data — what each version added.

V1

87,961 bytes · 100 puzzles (40 MYP / 40 GCSE / 20 IB) · sha256 df438e1b… · 10/10 write probes refused · 0 console exceptions

Files on the site

What broke, and what I’d change

Not written yet. This is the part only I can write — what actually went wrong, and what I’d do differently. It lives in builds/reflections/islandpython.md (see _TEMPLATE.md); as soon as that file has words in it, this section fills in on the next build.

Everything else on this page — the spec, the version history, the file counts — is generated from the project’s own build notes and files, so nothing here is guesswork.

Build spec

The project’s own build notes, rendered. Open the raw .md ↗

Show the spec

Island Python — audit and public copy

What this is

Two deliverables from one investigation of islandpython-e58fe.web.app, the Firebase app my school uses for Python teaching:

  1. An audit of what a normal student account can read and write, and what anyone on the internet can
  2. read without an account at all.

  3. A rebuilt copy of the app: one HTML file, every class public, a superadmin page, no
  4. @online.island.edu.hk requirement, no SSO.

Constraints

  • Use only my own account. No probing of other students' records.
  • Do not change anything on the live site. Every write probe had to be refused, or reverted.
  • The copy has to be useful, not an archive: a visitor must be able to run Python, join a class,
  • submit a puzzle, approve one as a teacher, and edit anything as a superadmin.

  • No build step, no server, no database. One file that opens from disk.

How the copy was built

  1. Read the production bundle. The puzzle set is generated by one function that takes a level and a
  2. number, so instead of scraping 100 screens I sliced that function out of the minified source by brace matching (skipping strings, template literals and comments), evaluated it in Node, and called it for the whole pathway: MYP 1 to 40, GCSE 1 to 40, IB 1 to 20. 100 objects with title, prompt, example, starter code, expected output, hint.

  3. Rebuilt the screens around that data: student pathway, editor, run, explanation, submit, teacher
  4. review queue, superadmin area. Vanilla JS, one file, no framework.

  5. Real Python with Pyodide 0.27.2 from the CDN, the same version the live site loads, so the code
  6. the visitor writes actually executes.

  7. Seeded a school in localStorage: 24 classes, 345 students, 12 teachers, 2,499 submissions, so
  8. the directory, the queue and the league table have something real to sort.

  9. Kept two production behaviours on purpose: join codes derived from the class document id with
  10. charCode % 32, and the output only puzzle check. Both are visible on purpose.

Verification

Headless Chromium over the DevTools protocol, on the served copy:

  • fresh load, guest session created, Classes directory renders 24 rows
  • sign in with a plain name, role superadmin, admin tabs all render
  • join a class by code, run a puzzle, submit, approve it as the teacher, cell fills in
  • 0 console exceptions, 100 pathway cells present
  • served copy on the live site: body byte identical after stripping the Cloudflare beacon and the
  • site skin block (the mirror directory is in SKIP_PREFIX so those are not injected at all)

Numbers

  • 87,961 bytes, one file
  • sha256 df438e1b4c6f1a9f8a15d6ab23f0d69a5bbf5b34bca4ece765a51aa298bb2d78
  • 100 puzzles from 24 source templates
  • 11 course lab pages public on the live site, 1,312 KB
  • 10 of 10 write probes refused with 403