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

SSL Support for RMIRegistryExploit #33

Closed
TorgeH opened this issue Mar 18, 2016 · 5 comments
Closed

SSL Support for RMIRegistryExploit #33

TorgeH opened this issue Mar 18, 2016 · 5 comments

Comments

@TorgeH
Copy link

TorgeH commented Mar 18, 2016

Hi,

trying to PoC-Exploit a setup like the one explained here:
https://blogs.oracle.com/jmxetc/entry/jmx_connecting_through_firewalls_using
(ssl enhanced RMI over single port), I'm stumbling upon the same error message as the first commenter.
Would it be possible to add ssl-support to RMIRegistryExploit?

@frohoff
Copy link
Owner

frohoff commented Mar 18, 2016

The exploit code would need to create the registry client with something like this, and probably customize the SSLContext to trust the cert(s) in question:

SSLContext sc = SSLContext.getInstance("TLS");
// probably need to customize trust for self-signed certs here
SSLSocketFactory sf = sc.getSocketFactory();
RMIClientSocketFactory csf = new MySslRMIClientSocketFactory(sf);
Registry registry = LocateRegistry.getRegistry("myserver", 1234, csf);

It should be easier to build-in support for this when we finish #23.

@TorgeH
Copy link
Author

TorgeH commented Mar 21, 2016

Thanks for your observations and pointers.
I will try to tinker with these a bit.

@frohoff frohoff changed the title RMI Exploit failing due to ssl encryption? SSL Support for RMIRegistryExploit Mar 22, 2016
@frohoff
Copy link
Owner

frohoff commented Mar 22, 2016

Renamed and tagged as enhancement

@frohoff
Copy link
Owner

frohoff commented Apr 4, 2016

This will probably have to wait for #23.

@frohoff
Copy link
Owner

frohoff commented Apr 25, 2019

This was fixed in #81

@frohoff frohoff closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants