2005/03/13 nikto

Nikto is a Perl script for testing web sites. It's useful, though there are more than a few things that are annoying about it. First is its dependence on other modules: I know, I know, I'm a grumpy old curmudgeon but I really dislike having to go track down stuff. I understand that sometimes the other modules are really, really necessary and I certainly don't expect someone to reinvent the wheel just to avoid this, but far to often it's just plain laziness - that probably doesn't apply here, I'm just grumbling in general..

Anyway, once you've satisfied its dependencies, update, and then just turn it loose on your site:


Hate these ads?



nikto.pl -update
nikto.pl -host localhost -output /tmp/problems


That will display its progress on the screen as well as logging it to /tmp/problems for later review.

Nikto knows about a LOT of potential secuity problems. Unfortunately, if you have Custom 404 redirects in place, Nikto thinks you have each and every problem it knows about. It effectively tells you that early on:



+ Server does not respond with '404' for error messages (uses '301').
+     This may increase false-positives.


That also confuses it terribly with TRACE, which apparently should be disabled (http://www.cgisecurity.com/whitehat-mirror/WhitePaper_screen.pdf). But if the disable pushes it to a custom error page, Nikto thinks it's still enabled.

The obvious solution is to shut off custom error handling while testing with Nikto. That may be annoying, but the tests don't take all that long to run. Or, you can leave it as is and manually review the output, ignoring warnings due to that misunderstanding.










Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner





Views for this page
Today This Week This Month This Year  Overall
242465 2,455

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

pavatar.jpg
More:
       - Security
       - Web/HTML




Unix/Linux Consultants


http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting



Twitter
  • Nov 30 20:25
    I have 37,000 words of a 50,000 word project. I'd like to finish it this week..
  • Nov 30 20:05
    My wife made turkey sandwiches with stuffing and cranberry orange relish - I did not want to eat the last bite. Didn't want it to end!









Change Congress


Related Posts