Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

apache/hertzbeat
master @ 1b7f7f9
45
Fixes
16
CVEs
CRITICAL
Peak severity
Highlights
Denial of Service: 13 prior fixes. Scrutinize any change in this area.
hertzbeat-alerter: most-fixed (7 issues). Treat as high-risk during review.
25 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Remote Code Execution: JMX connections and dynamic JNDI lookups allowed attackers to perform unauthorized remote class loading. Remediations introduced strict JNDI protocol validations ('rmi://' only) and hostname verification during connector setup.
Remote Code Execution: The application evaluates dynamic logic via expressions. Untrusted inputs executing JEXL or Aviator code resulted in sandbox escapes and arbitrary code execution, requiring features like object creation, method calls, and lambdas to be disabled.
Deserialization: Untrusted YAML parsing using SnakeYAML allowed arbitrary constructor invocation (e.g., ScriptEngineManager, URLClassLoader). Security requires using SafeConstructor and strict class blocklists during import processes.