mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
- Remove package-lock.json: the server uses no npm packages, which the invariants check enforces (no supply chain to attack). - Allow the two hosts the server really calls in .github/allowed-hosts.json: cdn.jsdelivr.net (Twemoji pictures, lib/emoji.js) and vision.googleapis.com (the optional SafeSearch check, lib/image-moderation.js). The github.com mention in lib/emoji.js was only a comment, now reworded. - logText strips line feeds with .replace(/\n/g, ""), the form CodeQL's js/log-injection recognises as a sanitiser. The old [\r\n]+ to a space was just as safe, but not recognised, so every log line using it was flagged (34 alerts on main, 35 on this branch). - /authenticate: the saved sign-in is decided by what the server finds for the refresh token, not by whether the request has one (js/user-controlled-bypass). A token that is not good is still refused with error_code 100. Co-Authored-By: Claude Opus 5.5 <[email protected]>
33 lines
705 B
JSON
33 lines
705 B
JSON
{
|
|
"server": [
|
|
"ajcontent.akamaized.net",
|
|
"burrow.moe",
|
|
"cdn.jsdelivr.net",
|
|
"challenges.cloudflare.com",
|
|
"play.burrow.moe",
|
|
"vision.googleapis.com",
|
|
"www.cloudflare.com",
|
|
"www.w3.org"
|
|
],
|
|
"swf": [
|
|
"academy.animaljam.com",
|
|
"adobe.com",
|
|
"aj-color-picker.carrd.co",
|
|
"buddy.animaljam.com",
|
|
"crypto.hurlant.com",
|
|
"dailyexplorer.animaljam.com",
|
|
"dev-content.animaljam.com",
|
|
"jump.animaljam.com",
|
|
"ns.adobe.com",
|
|
"purl.org",
|
|
"shop.animaljam.com",
|
|
"ssl.google-analytics.com",
|
|
"wac.6a16.edgecastcdn.net",
|
|
"www.adobe.com",
|
|
"www.animaljam.com",
|
|
"www.google-analytics.com",
|
|
"www.osmf.org",
|
|
"www.w3.org"
|
|
]
|
|
}
|