mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
The generator wrote several rule fields into the script unescaped. A `*/` in a rule name ended the `@metadata` comment, a line break ended the `# Rule:` comment, a custom header name could close its string, and a size value was written as-is, so each could add live commands such as `redirect "attacker@..."` to the active script. Rules reach the generator from plugins holding `filters:write` and from imported filter sets, not only from the editor. The metadata JSON now escapes `*/` (JSON reads `\/` back as `/`), the rule-name comment is kept on one line, header names are escaped like other strings, and a size that is not a number becomes 0.