check-safety/check_pluginforms.go
Alex Dunmow 1a8347a9e5 Add plugin route, output, form, log and egress rules (checks 33 to 37)
Generated plugins (acceptance.json at the root) fail on: HTTP routes not
registered through pluginsdk route or a public route reading personal
columns; HTML built from unescaped non-constant strings; public POSTs
outside route.Form; personal data names in log calls; outbound requests
carrying personal data or values the spec does not send to that host.
First-party plugins get the same findings as warnings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 06:26:33 +08:00

13 lines
271 B
Go

package main
func init() {
register(Check{
Seq: 350,
ID: "35",
Title: "Public plugin form posts use route.Form",
Run: func(ctx *ScanContext, rep *Reporter) {
runPluginRule(ctx, rep, "plugin form post(s) outside route.Form", checkPluginForms)
},
})
}