漏洞描述
Cacti through 1.2.30 builds the rrdtheme.php include path in lib/rrd.php directly from the graph_theme request parameter without validating it against the installed themes. graph_image.php (reachable with guest access) therefore includes include/themes/<graph_theme>/rrdtheme.php with attacker-controlled path segments. The non-default midwinter theme is requested with a trailing path segment (midwinter/.) so that only an unpatched install, which concatenates the value verbatim, resolves and includes it. Fixed in 1.2.31 by cacti_validate_theme(), which applies basename() and an allowlist of installed themes.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。