Skip to content

Commit db9f9af

Browse files
committed
fixes vul test xxe request
1 parent f13c164 commit db9f9af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dongtai_agent_python/tests/vul-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ api_get "demo/xss_template" "content=alert"
104104
api_get "demo/xss_template_string" "content=alert"
105105

106106
headline "xxe"
107-
api_post "demo/xxe_login" '<?xml version="1.0" encoding="utf-8"?><!DOCTYPE Anything [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><user><username>&xxe;</username><password>yzx</password></user>'
107+
curl_with_code -H "Content-Type: text/plain" "${HOST}/api/django/demo/xxe_login?_r=${RUN_ID}" -X POST --data-raw '<?xml version="1.0" encoding="utf-8"?><!DOCTYPE Anything [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><user><username>&xxe;</username><password>yzx</password></user>'
108+
curl_with_code -H "Content-Type: text/plain" "${HOST}/api/flask/demo/xxe_login?_r=${RUN_ID}" -X POST --data-raw '<?xml version="1.0" encoding="utf-8"?><!DOCTYPE Anything [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><user><username>&xxe;</username><password>yzx</password></user>'
108109

109110
headline "ssrf"
110111
api_get "demo/urllib_ssrf" "url=https://www.huoxian.cn/"

0 commit comments

Comments
 (0)