1 of 17

ETHICAL HACKING

Project C

BY: CALVIN DINH

2 of 17

TASKS

Install Production Server VM in the TRUSTED network

Enumerate possible vulnerabilities on the Production Server and the Web Server

Exploit: port 1099 Java-rmi and port 3632 Distccd on the Production Server. Port 21 ftp and port 6667 UnrealIRCd on the Web Server

Exploit by creating an account with root permissions on the Production Server

Crack the passwords for the user on both servers

Recommendations to improve security

​

​

​

2

3 of 17

3

NETWORK DIAGRAM

4 of 17

INSTALLATION

Production Server

The previous network I created for the company (please see virtual OS and Networking project) did not include the Production Server, so I added it into the Trusted network and tested all VM machines on the network to ensure they were still functioning correctly.

​

4

4

5 of 17

THE NETWORK IS FUNCTIONING WITHOUT ISSUES

6 of 17

A ROBUST NMAP SCAN WITH –A ON PRODUCTION SERVER

7 of 17

Port 1099 tcp

Java-rmi

GNU Classpath grmiregistry

​

PRODUCTION SERVER

​

EXPLOIT:

I was able to create an active meterpreter session on the Production Server.

​

8 of 17

Port 3632 TCP Distccd: a program designed to distribute compiling tasks 

PRODUCTION SERVER

​

EXPLOIT:

​

I was able to establish/ open a command shell session on the Production Server.

​

9 of 17

A ROBUST NMAP SCAN WITH –A ON WEB SERVER

10 of 17

Port 21

ftp: File transfer protocol

Version vsftpd 2.3.4

WEB SERVER

EXPLOIT:

Exploiting Web Server through port 21 ftp

11 of 17

6667/tcp

Irc UnrealIRCd

WEB SERVER

​

EXPLOIT: I was able to establish/ open a command shell session on the Web Server.

​

12 of 17

Exploiting by creating new account on Production Server

with root privileges

​

User: newaccount

PW: Pa$$w0rd

​

​

​

PRODUCTION SERVER

13 of 17

EXPLOITING: LOOKING FOR INTERESTING FILES ON PRODUCTION SERVER

14 of 17

Interesting File

from Web Server

EXPLOITING - WEB SERVER

THIS FILE CONTAINS SENSITIVE INFORMATION ABOUT CANDIDATES FOR THE POSITION OF DIRECTOR OF SECURITY

15 of 17

EXPLOIT AND VULNERABILITIES

EXPLOITING: PASSWORDS CRACKING

16 of 17

  • The VSFTPD version 2.3.4 service vulnerability was only short lived (This backdoor was introduced into the vsftpd-2.3.4.tar.gz archive between June 30th 2011 and July 1st 2011 according to the most recent information available. This backdoor was removed on July 3rd 2011) but it provided an opportunity to learn about backdoor exploitation through poor coding. It emphasized the importance to follow Coding Conventions and to write clear, concise comments as well as the use of Automated Code Review Tools.

​

  • Port 1099 java-rmi GNU Classpath grmiregistry should be made accessible for localhost but not remote host if possible.

​

  • Port 3632 Distccd (distributed C/C+ compiler server): SSH (secure shell protocol), -- allow rule or

firewall rules should be used to limit access to port 3632.

​

  • Port 6667 irc unrealIRCd: verify software is using the published MD5/SHA1 checksums.

​

  • I got 4 vulnerabilities in total, 3 uniques, which (vsftpd v2.3.1, Java RMI (remote method invocation), and

unrealIRCd 3.2.8.1) worked on both Production and web servers. I ran multiple vulnerability scans and both Production and Web Servers seemed to have many potential vulnerabilities. I would recommend that we investigate these

vulnerabilities moving forward in the future to determine whether they are true positive or false positive, true negative or false negative.

​

​

​

​

​

​

RECOMMENDATIONS

17 of 17

THANK YOU

CALVIN DINH

+1 (469) 487-5705

calvindinh@sbcglobal.net

Credits: This presentation template was generated with Tech design by Powerpoint