You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f730cc1
Browse filesBrowse the repository at this point in the historyBrowse files
Harden against denial of service and account takeover
From a security review of the new code:
- Render markdown in a worker thread with a 5 s budget, and reject bodies
saturated with emphasis markers up front: some inputs make CommonMark
parsing quadratic and could freeze the server for tens of seconds
- Make excerpt and reading-time helpers linear (truncate first, bounded
patterns, line-based code fence stripping); they run on every page view
- Only auto-link a GitHub login to an existing account whose e-mail is
verified; GitHub-created accounts are verified, changing the e-mail
clears the verification
- Never write multipart bodies to disk (no upload feature), cap request
bodies at 1 MB in Caddy
- Rate-limit edits, likes, solutions, pin/lock, settings and the preview
- Hide comments of unpublished articles from profiles and the dashboard;
only the author can publish their draft
- Count replies correctly under concurrent deletes; double-clicking a like
no longer returns a 500
- CI deploy job is skipped with a warning when secrets are not configured
0 commit comments