Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [CVE-2022-46478] datax-web executor rpc interface has no privilege checks by default, which leads to deserialization #587

Open
aboutbo opened this issue Nov 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@aboutbo
Copy link

aboutbo commented Nov 23, 2022

In datax-web/datax-core/src/main/java/com/wugui/datatx/core/executor/JobExecutor.java
Use the Hessian protocol directly as a serialization method
image
Because the executor rpc interface has no permission checks by default, the attacker can send the maliciously constructed Hessian serialized data to the rpc interface, leading to command execution.
datax-web/datax-rpc/src/main/java/com/wugui/datax/rpc/serialize/impl/HessianSerializer.java
image
Poc:

  1. Use ysomap to generate the payload by SpringAbstractBeanFactoryPointcutAdvisor.SpringJndiBullet1.
  2. curl -XPOST --header "Content-Type:application/octet-stream" --data-binary "@payload" http://ip:9999/

This issue affects datax-web 2.7.x version 1.0.0, 2.0.0-2.1.2

@aboutbo aboutbo added the bug Something isn't working label Nov 23, 2022
@aboutbo aboutbo changed the title [BUG] executor rpc接口默认无权限校验,存在反序列化漏洞 [BUG] datax-web executor rpc interface has no privilege checks by default, which leads to deserialization Nov 29, 2022
@aboutbo aboutbo changed the title [BUG] datax-web executor rpc interface has no privilege checks by default, which leads to deserialization [BUG] [CVE-2022-46478] datax-web executor rpc interface has no privilege checks by default, which leads to deserialization May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant