Harden security found in the audit
- Rate limits and IP hashes use the X-Forwarded-For entry nginx adds, not the client-supplied first one - Link preview and feed fetches block IPv4-mapped and other embedded IPv6 forms of private addresses (net.BlockList) - CSRF check on /api writes; security headers and HSTS on every response - Viewers no longer receive a person's private details (readRole) - Sessions end 90 days after sign-in however active - yt-dlp ignores config files and takes the link after -- - Meta tag insert no longer expands $ patterns from record text - Links with an unsafe scheme draw as text - Migration 037: leadership lists name published home orgs only - Ignore *.db-wal, *.db-shm and *.txt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
693dd84b6e
commit
4066e9ec61
11 changed files with 143 additions and 42 deletions
|
|
@ -291,8 +291,9 @@ async function download(db, job) {
|
|||
await run(
|
||||
YTDLP,
|
||||
[
|
||||
// Our options only: no yt-dlp.conf on the box changes them.
|
||||
"--ignore-config",
|
||||
...cookies.args,
|
||||
job.source_url,
|
||||
// YouTube needs a JavaScript runtime to list formats; the one
|
||||
// running this server will do.
|
||||
"--js-runtimes",
|
||||
|
|
@ -319,6 +320,9 @@ async function download(db, job) {
|
|||
...(process.env.FFMPEG_PATH ? ["--ffmpeg-location", process.env.FFMPEG_PATH] : []),
|
||||
"-o",
|
||||
template,
|
||||
// Last, after --, so the link can never be read as an option.
|
||||
"--",
|
||||
job.source_url,
|
||||
],
|
||||
{
|
||||
onLine: (line) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue