tianshiyeben / wgcloud

Linux运维监控工具,支持系统硬件信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,服务接口,大屏展示,拓扑图,进程监控,端口监控,docker监控,文件防篡改,日志监控,数据可视化,web ssh,堡垒机,指令下发批量执行,Linux面板(探针),SNMP,故障告警,计划任务,账号管理,资产管理
http://www.wgstart.com
Apache License 2.0
4.62k stars 842 forks source link

There is a SQL Injection Vulnerability in wgcloud v2.3.7 开源版 #91

Open WDLegend opened 3 months ago

WDLegend commented 3 months ago

[vulnerable type] SQL Injection [version] v2.3.7

[details] configure a database (i use the wgcloud's default databse 'wgcloud') then configure table as below

image

just wait for a moment and see log:

image

we can see database name is wgcloud.

image

in RDSConnection.java , the system use a blacklist as filter, but it's hard to filter all sql injection words.

[repair suggetions] Delete this feature or use white list

tianshiyeben commented 3 months ago

Thank you very much for your suggestion

Best Regards WGCLOUD

发件人: @. 发送时间: 2024-06-14 18:34 收件人: tianshiyeben/wgcloud 抄送: Subscribed 主题: [tianshiyeben/wgcloud] There is a SQL Injection Vulnerability in wgcloud v2.3.7 开源版 (Issue #91) [vulnerable type] SQL Injection [version] v2.3.7 [details] configure a database (i use the wgcloud's default databse 'wgcloud') then configure table as below image.png (view on web) just wait for a moment and see log: image.png (view on web) we can see database name is wgcloud. image.png (view on web) in RDSConnection.java , the system use a blacklist as filter, but it's hard to filter all sql injection words. [repair suggetions] Delete this feature or use white list — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>