One-liner: CORS Misconfiguration

CORS misconfigurationExploitation

From awesome-oneliner-bugbounty by Dwi Siswanto and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

@manas_hunter

bash
site="URL"; gau "$site" | while read url; do target=$(curl -sIH "Origin: https://evil.com" -X GET $url) | if grep 'https://evil.com'; then [Potentional CORS Found] echo $url; else echo Nothing on "$url"; fi; done

Comments

No comments yet.