Socket
Socket
Sign inDemoInstall

jello-optimizer-jsp-xss

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jello-optimizer-jsp-xss

Jello optimizer xss for JSP


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
1.78 MB
Created
Weekly downloads
 

Readme

Source

jello-optimizer-velocity-xss

与FIS组@2betop发布的jello-optimizer-velocity-xss类似

自动将JSP内容区的变量加 fn:escapeXml 包裹,用于防止恶意代码执行。

另外,对于<c:out>标签强制加入属性escapeXml="true"

Diff

使用

安装

npm install -g jello-optimizer-jsp-xss

启用插件

fis.config.set('modules.optimizer.jsp', 'jsp-xss');

然后使用 release 命令的时候,记得带上 -o 参数。

jello release -o

配置项

  • blacklist 。数组格式,元素为正则对象,。用于规定哪些变量不转换。
fis.config.set('settings.optimizer.velocity-xss', {
  blacklist: [
    /^foo/i, // foo 打头的变量不进行转换。
  ]
});
  • cleanJspComments 。布尔值。默认为true,即在编译时去除服务端注释<% ... %>。

FAQs

Last updated on 02 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc