Skip to content

Short-ciruit string rendering if require invocation is detected#8358

Merged
jackkav merged 2 commits into
developfrom
fix/nunjucks-stop-require
Feb 12, 2025
Merged

Short-ciruit string rendering if require invocation is detected#8358
jackkav merged 2 commits into
developfrom
fix/nunjucks-stop-require

Conversation

@godfrzero

@godfrzero godfrzero commented Feb 11, 2025

Copy link
Copy Markdown
Contributor

This PR adds a temporary means of preventing string rendering if a require invocation is detected. This has been tested locally and verified to be functional (enough) against strings in the URL, body, and headers but should cover all flows which render strings with the exception of ones introduced via plugins.

Closes SEC-1323

@jackkav jackkav force-pushed the fix/nunjucks-stop-require branch from a548ed6 to fe5ff80 Compare February 12, 2025 12:30
@jackkav jackkav marked this pull request as ready for review February 12, 2025 12:30

@filfreire filfreire 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.

Tested locally, LGTM

@jackkav jackkav merged commit dd9453f into develop Feb 12, 2025
@jackkav jackkav deleted the fix/nunjucks-stop-require branch February 12, 2025 13:03
pavkout pushed a commit to pavkout/insomnia that referenced this pull request Feb 17, 2025
…#8358)

* Short-ciruit string rendering if require invocation is detected [SEC-1323] [INS-4963]

* add sentry exception

---------

Co-authored-by: jackkav <jackkav@gmail.com>
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