E-commerce websites made with JSP are like a haomu. But can JSP websites be securely secured? In the face of endless hacker and virus attacks, can JSP website servers be more secure than those of other websites? Some time ago, at the invitation of a friend, I tested the hosts of the three servers they hosted and found several problems with the JSP website.
Intrusion test Step 1: Scan
Scanning is the first step of intrusion. It gives you a comprehensive understanding of the target to be intruded. At the same time, scanning may also detect vulnerabilities in scanning objects, providing guidance for intrusion.
A friend's two servers are Linux, one is Windows, and there is a Cisco PIX 525 behind the router to protect the three hosts, only allowing external users to connect some ports of different hosts, for example, 110.
According to the detection, the filtering rules of the Cisco PIX Firewall are strictly set. Basically, there are no redundant ports to allow access by external users. After careful analysis, I found that the host of the target network provides external access through address translation and uses the 192. 168. *. * address segment internally.
If you don't consider that much, find a scan software to check the security of the host. I found X-Scan. After scanning the ports of these hosts externally, I generated a report about the ports. I found that there was a Tomcat server, the explanation is the JSP file.
TIPS:
Tomcat Web server is an open-source free network server suitable for various platforms. Well-known websites such as eBay.com and Dell computers use or use Tomcat's container to execute Servlet and JSP.
It seems that only Web services can be used for indirect attacks. First, check the TCP port 80 service. I found that the news search function is provided by port 8080. Enter http: // 202. 103. *. after 168: 8080/, A System Management logon page is displayed. After a simple test, enter "test/test" as the "user name/password". It seems that the authentication is successful, however, you cannot enter the next page.
Expert tips: for scanning, it can easily expose the weakness of our website. To cope with the scanning, we can set up a honeypot to mislead the scanner. The honeypot can make the system pretend to be a loophole everywhere, so as to mask the real vulnerability, or disguise it as no vulnerability, let intruders do not know where to start (in the 47th PC news last year, we introduced the creation of honeypot ).