-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPDATE] DedeCMS_v5.7_carbuyaction_存储型XSS
- Loading branch information
Showing
1 changed file
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,42 @@ | ||
# DedeCMS_v5.7_shops_delivery_å˜å‚¨åž‹XSS | ||
# DedeCMS_v5.7_carbuyaction_存储型XSS | ||
|
||
## Affected Version | ||
|
||
DedeCMS-V5.7-UTF8-SP2 ï¼? å‘布日期 2017-03-15 ï¼? | ||
DedeCMS-V5.7-UTF8-SP2 ( 发布日期 2017-03-15 ) | ||
|
||
下载地å€ï¼? 链接: https://pan.baidu.com/s/1bprjPx1 密ç : mwdq | ||
需要站点启用商城功能。 | ||
|
||
下载地址: 链接: https://pan.baidu.com/s/1bprjPx1 密码: mwdq | ||
|
||
|
||
## PoC | ||
|
||
该æ¼æ´žæ¯”较鸡肋,需è¦ç™»å½? 管ç†å‘˜åŽå°é€šè¿‡ æ·»åŠ é…é€æ–¹å¼? 功能 æ‰èƒ½è§¦å‘ï¼? æ·»åŠ åŽåœ¨å‰åŽå°éƒ½ä¼šè§¦å? å˜å‚¨åž? XSSã€? | ||
该漏洞 通过用户在编写订单收货地址的相关参数 注入 XSS Payload,导致 前台查看订单的页面和后台管理员查看订单详情的页面都会被 XSS。 | ||
|
||
所以说,可以用来打管理员 Cookie 。 | ||
|
||
测试: | ||
|
||
1. 首先管理员添加一项商城的商品 | ||
|
||
![](add_good.png) | ||
|
||
之所以会触å‘æ˜¯å› ä¸ºåœ¨ç³»ç»Ÿå¯? 管ç†å‘˜è¾“入的 é…é€æ–¹å¼?-æè¿°å—段(des)在入库å‰åªè¿›è¡Œäº? addslashes 转义特殊å—符处ç†ï¼Œå…¶å®žè¿™æ²¡æ¯›ç—…ã€? | ||
2. 前台用户选定商品添加购物车 | ||
|
||
é‡è¦çš„是å–出数æ®åº“çš„æ•°æ®è¾“出到页é¢å‰æ²¡è¿›è¡? HTML 实体编ç 处ç†ç›´æŽ¥è¾“出导致最终的 XSSã€? | ||
![](add_shopcar.png) | ||
|
||
测试� | ||
3. 前台用户编辑订单的收货地址,在这里 address,des,email,postname 都是存在 XSS 的,插入 XSS Payload | ||
|
||
1. åŽå°æ·»åŠ é…é€æ–¹å¼? | ||
![](edit_address.png) | ||
|
||
![](add_delivery.png) | ||
4. 查看订单详情发现前台已经被 XSS | ||
|
||
2. æ·»åŠ æˆåŠŸåŽç›´æŽ¥å±•ç¤ºé…é€æ–¹å¼åˆ—è¡¨ï¼Œè§¦å‘ XSS | ||
![](xssed.png) | ||
|
||
![](show_delivery.png) | ||
5. 管理员进入后台查看商城订单同样也会被 XSS :p | ||
|
||
æ¤å¤–,这ä¸? XSS 在å‰å°ç”¨æˆ·è´ä¹°ä¸œè¥¿é€‰æ‹©é…é€æ–¹å¼çš„时候也会触å‘ã€? | ||
![](back_xssed.png) | ||
|
||
## References | ||
|
||
1. https://www.seebug.org/vuldb/ssvid-92863 | ||
1. https://www.seebug.org/vuldb/ssvid-92855 |