Skip to content

Commit

Permalink
Update Xstream反序列化漏洞修复方案.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryin committed Jan 24, 2018
1 parent 64c3e4e commit 8714aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xstream反序列化漏洞修复方案.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ xstream.allowTypesByWildcard(new String[] {Blog.class.getPackage().getName()+".*
可以根据业务需求设置白名单。在设置前一定要清除默认设置,即addPermission(NoTypePermission.NONE)。Xstream内置了很多类型,可以参考[Xstream官方示例](http://x-stream.github.io/security.html#example)

#### 使用黑名单校验方案
使用Xstream的denyPermission方法可以实现黑名单控制,但不推荐使用该方法,如果业务需求只能使用黑名单的方式,可以联系安全工程师确认
使用Xstream的denyPermission方法可以实现黑名单控制,但不推荐使用该方法。

### 安全建议

Expand Down

0 comments on commit 8714aa5

Please sign in to comment.