Skip to content

Enable twig for endpoint - #713

Merged
bbrands02 merged 2 commits into
mainfrom
hotfix/enable-twig-for-endpoint
Apr 14, 2026
Merged

Enable twig for endpoint#713
bbrands02 merged 2 commits into
mainfrom
hotfix/enable-twig-for-endpoint

Conversation

@bbrands02

Copy link
Copy Markdown
Contributor

No description provided.

@WilcoLouwerse WilcoLouwerse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review

SSTI Risk — The endpoint string is passed directly to Twig rendering. If renderTemplateString() doesn't use a sandboxed environment, any user who can configure sourceConfig['endpoint'] could execute arbitrary code. Verify sandboxing before merging.

Rate-limit bypass — The reordering moves checkRateLimit() to after template rendering. This means rate-limited requests still do Twig processing before being rejected. Keep the rate-limit check at the top for fail-fast behavior.

@bbrands02
bbrands02 merged commit f69c774 into main Apr 14, 2026
5 of 10 checks passed
@bbrands02
bbrands02 deleted the hotfix/enable-twig-for-endpoint branch April 14, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants