DOM-based open redirection
Khái niệm
let url = /https?:\/\/.+/.exec(location.hash);
if (url) {
location = url[0];
}Tác động


Các sink có thể dẫn đến lỗ hổng
Ngăn chặn
Last updated
let url = /https?:\/\/.+/.exec(location.hash);
if (url) {
location = url[0];
}

Last updated
https://0a4100c404f5bf6b81e42a6500850047.web-security-academy.net/post?postId=1&url=https://exploit-0afc0031044abf02810029a40166001b.exploit-server.net/location
location.host
location.hostname
location.href
location.pathname
location.search
location.protocol
location.assign()
location.replace()
open()
element.srcdoc
XMLHttpRequest.open()
XMLHttpRequest.send()
jQuery.ajax()
$.ajax()