博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
activemq-messages-dequeud-but-not-consumed
阅读量:6622 次
发布时间:2019-06-25

本文共 1188 字,大约阅读时间需要 3 分钟。

hot3.png

ObjectMessage serialization security was the issue.

ObjectMessage objects depend on Java serialization of marshal/unmarshal object payload. This process is generally considered unsafe as malicious payload can exploit the host system. That's why starting with versions 5.12.2 and 5.13.0, ActiveMQ enforces users to explicitly whitelist packages that can be exchanged using ObjectMessages.

I saw this a few days ago and added a white list but it didn't fix the issue. I also tried running against AMQ 5.11.3 and it didn't work. Apparently they added the security feature to 5.11.3 too. Anyway, I added this (-Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*") to the client side and AMQ vm arguments and now everything is working as it should.

Keep in mind that the command line option I used is a security vulnerability that I've explicitly opened in my broker, which can allow a malicious user to execute code on my system. The right way to use that flag is to explicitly list the classes you allow to be deserialized, or at most use package wildcards to avoid explicitly listing individual classes and subpackages in a trusted parent package.

转载于:https://my.oschina.net/fastjrun/blog/625636

你可能感兴趣的文章
淘宝发布“避冬”锦囊,9成剁手党必备秋裤,搓澡巾成山东人最爱?
查看>>
轻松hold住双11数据洪峰背后的秘密
查看>>
如何降低90%Java垃圾回收时间?以阿里HBase的GC优化实践为例
查看>>
ASP.NET MVC+EF框架+EasyUI实现权限管理系列(20)-多条件模糊查询和回收站还原的实现...
查看>>
MySQL 日期时间 专题
查看>>
2017风投格局:为何我在辛苦赚钱 你却离我而去?
查看>>
4.4、Android Studio在命令行运行Gradle
查看>>
创建后台任务的两种代码模式
查看>>
安装 VirtualBox 出现回滚,无法安装及解决方法
查看>>
【我的Android进阶之旅】Android使用getIdentifier()方法根据资源名来获取资源id
查看>>
iOS 11升级后常见的几个问题与解决的建议
查看>>
Java——Thread/Runnable实现多线程
查看>>
Onvif开发之代码框架生成篇
查看>>
Linux下如何挂载FAT32格式USB设备
查看>>
云计算大赛:部署盛大云主机抢先开发
查看>>
Golang /Go调试工具delve
查看>>
用 Flask 来写个轻博客 (35) — 使用 Flask-RESTful 来构建 RESTful API 之四
查看>>
实验一个最小的PYTHON服务器编程
查看>>
.NET Core的文件系统[1]:读取并监控文件的变化
查看>>
【数学题】倍数问题
查看>>