Skip to content

Commit

Permalink
Merge pull request #383 from kevindoubleu/master
Browse files Browse the repository at this point in the history
add hastebin alternative to pastebin
  • Loading branch information
digininja authored Sep 13, 2020
2 parents 9da93a0 + 1c2c645 commit b445942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vulnerabilities/csp/help/help.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<h3>Low Level</h3>
<p>Examine the policy to find all the sources that can be used to host external script files.</p>
<pre>Spoiler: <span class="spoiler">Scripts can be included from Pastebin, try storing some JavaScript on there and then loading it in.</span></pre>
<pre>Spoiler: <span class="spoiler">Scripts can be included from Pastebin or Hastebin, try storing some JavaScript on there and then loading it in.</span></pre>

<br />

Expand Down
5 changes: 3 additions & 2 deletions vulnerabilities/csp/source/low.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

$headerCSP = "Content-Security-Policy: script-src 'self' https://pastebin.com example.com code.jquery.com https://ssl.google-analytics.com ;"; // allows js from self, pastebin.com, jquery and google analytics.
$headerCSP = "Content-Security-Policy: script-src 'self' https://pastebin.com hastebin.com example.com code.jquery.com https://ssl.google-analytics.com ;"; // allows js from self, pastebin.com, hastebin.com, jquery and google analytics.

header($headerCSP);

# These might work if you can't create your own for some reason
# https://pastebin.com/raw/R570EE00
# https://hastebin.com/raw/ohulaquzex

?>
<?php
Expand All @@ -15,7 +17,6 @@
}
$page[ 'body' ] .= '
<form name="csp" method="POST">
<p><strong>Currently broken due to changes at Pastebin, looking for alternatives.</strong></p>
<p>You can include scripts from external sources, examine the Content Security Policy and enter a URL to include here:</p>
<input size="50" type="text" name="include" value="" id="include" />
<input type="submit" value="Include" />
Expand Down

0 comments on commit b445942

Please sign in to comment.