khannurien
|
2ad8ae73d5
|
v3: the API stops trusting what it's handed — a review of api/ turned up a server anyone could crash, uploads that ran script on the app's origin, and a server that would fetch its own network on request, and this closes them along with the smaller holes around them. A WebSocket message that wasn't an object (a bare null will do) threw inside the listener, which Deno treats as uncaught and exits on; messages are now shape-checked and the handler can't throw out. Uploaded files kept the MIME type the uploader's browser claimed, so an .html or .svg dump opened from /api/files ran with the session token in reach; only images, audio, video, PDF and plain text are served inline now, the rest download, and every file carries nosniff and a sandboxing CSP (PDFs aside, which Chrome won't render sandboxed). The image proxy passed image/svg+xml straight through the same way and now takes raster formats only. Outbound fetches for previews, the proxy and Bandcamp checked the hostname against a partial list — no 169.254.169.254, no 0.0.0.0, an IPv6 check that never matched a bracketed hostname, nothing for names that resolve inward, and redirects followed blindly; every hop now resolves and is refused if any address is private or reserved, redirects are walked by hand, the curl fallback is pinned to the checked IP, and /api/preview needs a login. PATCH /users/me accepted a new password without the current one and now takes only the description and email; a wrong password at login answered 500 because the handler caught its own 401, and now says 401. Changing or resetting a password now ends every older session through users.tokens_valid_after (migration 0015) and an iat on every token, with change-password handing back fresh tokens the modal keeps, and all token checks go through one authenticate() that also refuses deleted users. Invites and reset links are claimed atomically before the async hash rather than marked after, so one invite no longer opens several accounts, and an email address belongs to one account. File and thumbnail URLs carry a media-only token rather than the session token, so a URL in a log exposes files and not the account; older sessions fetch one on load. Private things stop leaking into broadcasts: private playlist updates go to their owner, votes and likes on someone else's private dump 404 and their counts go to the owner alone, and a private dump can't be slipped into a playlist. Smaller: selfProvider only claims this site's own host, so github.com/users/bob stops rendering our bob; the chat read marker can't be parked in the future on an empty chat; dump mutations use the resolved id so a slug works; multipart dumps get the title and comment limits; logins and reset requests are rate-limited through a shared token bucket; the password compare is constant-time; ffmpeg reads only local files in known video containers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-09-24 20:07:33 +00:00 |
|
khannurien
|
810faaf21a
|
v3: added a roles/permissions system, added user management tab on user profile
Build and Publish Docker Image / build-and-push (push) Successful in 42s
|
2026-06-28 06:21:23 +00:00 |
|
khannurien
|
c29f45fbc8
|
v3: added index default tab selection setting, fixed notification pages not loading, reduced invite token length, global player state survives page reloads, many visual fixes
Build and Publish Docker Image / build-and-push (push) Successful in 44s
|
2026-06-27 19:44:35 +00:00 |
|
khannurien
|
20b9bfe7b4
|
v3: added password change/reset feature
|
2026-04-06 16:30:00 +00:00 |
|
khannurien
|
3b6980a8fc
|
v3: added multiple stylesheets, improved user profiles
|
2026-04-06 15:36:04 +00:00 |
|
khannurien
|
378b3ffa46
|
v3: added onboarding email on account creation
|
2026-03-30 14:55:30 +00:00 |
|
khannurien
|
c293f3e706
|
v3: code quality pass
|
2026-03-24 18:47:05 +00:00 |
|
khannurien
|
b96879a556
|
v3: fixes to database schema and user registration
|
2026-03-23 15:55:45 +00:00 |
|
khannurien
|
fbbbb43258
|
v3: code quality pass, various bug fixes
|
2026-03-23 07:47:49 +00:00 |
|
khannurien
|
d94a319d96
|
v3: added user profile description
|
2026-03-22 21:07:17 +00:00 |
|
khannurien
|
34e908d1bc
|
v3: added content slugs, fixed real-time updates in client, added @mentions across the app, added new file selector and drop zone
|
2026-03-22 16:06:26 +00:00 |
|
khannurien
|
608c6bc6a8
|
v3: follows, notifications, invite-only registration, unread markers
|
2026-03-21 18:42:47 +00:00 |
|
khannurien
|
7c098e7c4c
|
v2: global player, infinite scroll, image picker, threaded comments
|
2026-03-21 13:55:22 +00:00 |
|
khannurien
|
be426eb150
|
v1 feature: added playlists
|
2026-03-16 16:52:53 +00:00 |
|
khannurien
|
867e64cb5b
|
v1 review pass: fixed some minor bugs
|
2026-03-16 11:08:39 +00:00 |
|
khannurien
|
e88fed4e98
|
vibe coded v1
|
2026-03-16 07:34:49 +00:00 |
|
khannurien
|
6207a7549f
|
initial commit, boilerplate stuff
|
2026-03-15 17:15:46 +00:00 |
|