下载此文档

us-15-Kettle-Server-Side-Template-Injection-RCE-For-The-Modern-Web-App-wp外文文献.pdf


文档分类:IT计算机 | 页数:约20页 举报非法文档有奖
1/20
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/20 下载此文档
文档列表 文档介绍
Server-Side Template Injection:
RCE for the modern webapp
James Kettle - @ - ***@albinowax
Abstract
Template engines are widely used by web applications to present dynamic data via web pages and emails. Unsafely
embedding user input in templates enables Server-Side Template Injection, a frequently critical vulnerability that is
extremely easy to mistake for Cross-Site Scripting (XSS), or miss entirely. Unlike XSS, Template Injection can be used to
directly attack web servers' internals and often obtain Remote Code Execution (RCE), turning every vulnerable
application into a potential pivot point.
Template Injection can arise both through developer error, and through the intentional exposure of templates in an attempt
to offer rich functionality, monly done by wikis, blogs, marketing applications and content management systems.
Intentional template injection is such mon use-case that many template engines offer a 'sandboxed' mode for this
express purpose. This paper defines a methodology for detecting and exploiting template injection, and shows it being
applied to craft RCE zerodays for two widely deployed enterprise web applications. Generic exploits are demonstrated for
five of the most popular template engines, including escapes from sandboxes whose entire purpose is to handle user-
supplied templates in a safe way.
Outline
Introduction
Methodology
Detect
Identify
Exploit
Exploit Development
FreeMarker
Velocity
Smarty
Twig
Jade
Case Studies
Alfresco
XWiki Enterprise
Mitigations
Conclusion
Introduction
Web applications frequently use template systems such as Twig1 and FreeMarker2 to embed dynamic content in web
pages and emails. Template Injection occurs when user input is embedded in a template in an unsafe manner. Consider a
marketing application that sends bulk emails, and uses a Twig template to greet recepients by name. If the name is merely
passed in to the template, as in the following example,

us-15-Kettle-Server-Side-Template-Injection-RCE-For-The-Modern-Web-App-wp外文文献 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数20
  • 收藏数0 收藏
  • 顶次数0
  • 上传人新起点
  • 文件大小0 KB
  • 时间2015-10-27
最近更新