security: backend validation for all inputs
- router.param('id'): all :id path params must be positive ints
(tickets/features/polls/auth/users; external/bans/notifications already
had parseInt - now consistent)
- notifications: type enum + webhook URL format + SSRF (isPrivateUrl
exported) + events whitelist + active boolean check on PUT
- bans: type enum + player_name length
- external: all-tickets type/status enums, bans status/type enums,
page/limit floor protection, ticket field length caps, clients active
boolean + id validation
- verified: 28 checks (syntax + validation coverage)
This commit is contained in:
@@ -74,4 +74,4 @@ function buildEmbed(event, data) {
|
||||
return embed;
|
||||
}
|
||||
|
||||
module.exports = { sendWebhook };
|
||||
module.exports = { sendWebhook, isPrivateUrl };
|
||||
|
||||
Reference in New Issue
Block a user