-
Notifications
You must be signed in to change notification settings - Fork 600
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
There is RCE Vulnerability in antSword #147
Labels
🐛Bug
程序自身问题
Comments
感谢。为了防止插件中 toastr 出现类似问题, 修改了 toastr 可以输出 html 的特点,以后均不支持输出 html。 |
这个有点屌,RCE呀。 |
感觉这种程序架构比较容易出现xss rce遗漏,要不将任何从客户端来的的数据进行一次统一的encode过滤 |
刺激 |
@ViCrack 这个也是在输出的时候疏忽导致的,UI框架中用到的库不尽相同,比如 dhtmlx 中 grid,tree 都会在输出前编码一次,而 toastr 本就是输出 html 的,所以一刀切不是个好办法。 |
不过 这个利用起来 需要时间竞争 话说倒是可以读取db.ant 发送到远程 全部拿走 哈哈哈哈 |
怎么感觉高版本都修复了,今天刚好想复现玩玩的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
想交某VE,所以下面就用英文先写了
When i connect to my webshell by antsword.If the connection fails, antSword will echo error information.
like this
this information don't have xss protect,so i can xss and execute system command
My poc
My exp (for perl)
base64_decode code
getshell
~/source/modules/filemanage/index.js 206
add xss protect
The text was updated successfully, but these errors were encountered: