| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
In the event they differ enough: @japroc are you applying to the bounty program for this? |
Sorry, something went wrong.
|
Hi @intrigus-lgtm and @smowton, Unfortunately, i have not seen that PR (#5935) earlier. It looks similar. I think mine FreemarkerTaintedTemplate.ql covers same vulnerabilities.
Yes, i wanted to apply for bounty after some discussion |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Hi team!
I want to add support for Freemarker template engine.
There is a Freemarker.qll library and 2 queries.
Query 1 - FreemarkerTaintedTemplate.ql
Search for cases when untrusted data is used as template. It may lead to remote code execution and information disclosure vulnerabilities.
Query 2 - FreemarkerUnsafeConfiguration.ql
Search for unsafe freemarker configurations. It is not critical by default. Although, when developers use builtin interpret filter on user-data, they will be executed as part of template. As i know it's impossible to analyze ftl files. As mitigation it's recommended to configure secure engine by 1) not enabling Builtin API, 2) setting class resolver to ALLOWS_NOTHING_RESOLVER.
Thanks,
Evgenii.