Skip to content

Conversation

@plr0man
Copy link
Contributor

@plr0man plr0man commented Feb 7, 2020

Issue: Resolves #269

CVSS v3 Mapping:

CWE Mapping:

Remediation Advice Mapping:

  1. Wherever possible, avoid creating templates from user input. Passing user input into templates as parameters is normally a safe alternative.
  2. If supporting user-submitted templates is a business requirement, consider using a simple logic-less template engine such as Mustache or one provided by the native language like Python's Template. If this is not an option, review the chosen template engine's documentation for hardening advice, and consider rendering the template within a sandboxed execution environment.

References:
https://portswigger.net/kb/issues/00101080_server-side-template-injection

Checklist:

  • I have added entries to CHANGELOG.md and marked it Added/Changed/Removed

@plr0man plr0man added this to the v1.9 milestone Feb 7, 2020
@adamrdavid adamrdavid merged commit b8d11e2 into master Feb 18, 2020
@adamrdavid adamrdavid deleted the add-ssti branch February 18, 2020 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Server-Side Template Injection (SSTI)

4 participants