Improper authorization in the Scripting Developer check of the restricted Velocity view tools ($dotsecrets, $sql, $xslttool and the SQL method of $macro) in dotCMS versions before 26.11.10-02 allows any authenticated back-end user who can author Velocity code (templates, containers, widgets or files), without holding the Scripting Developer role, to run these tools as if they held it. The check identified the author of the calling code from the Velocity template name, which a template author can influence, so code saved by a non-developer could be attributed to content last saved by a Scripting Developer. On the default configuration this exposes values stored in the Velocity secrets app for the site and the System Host, and the result can be rendered to anonymous visitors. Where scripting or Velocity SQL access to the dotCMS database is enabled, it also reaches those tools. The same flawed check also prevented $xslttool and the $macro SQL method from working for legitimate Scripting Developers.
Fixed in 26.11.10-02 and later. The restricted tools now decide access from the author of the code as reported by the renderer, not from the template name, and only users holding the Scripting Developer role pass. Code assembled at render time with #evaluate or $render.eval no longer reaches these tools, and CMS Administrators without the Scripting Developer role no longer pass the check.
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub