Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
Issue #11: Alert on HTTP PATCH option
  • Loading branch information
sullo committed Dec 10, 2012
1 parent 044cca3 commit 4378ecc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
@@ -1,9 +1,11 @@
nikto
=====

Nikto web server scanner
Nikto web server scanner - https://cirt.net/Nikto2

https://cirt.net/
Full documentation - https://cirt.net/nikto2-docs/

Basic usage:

```
Options:
Expand Down Expand Up @@ -95,4 +97,4 @@ https://cirt.net/
-Version Print plugin and database versions
-vhost+ Virtual host (for Host header)
+ requires a value
```
```
1 change: 1 addition & 0 deletions program/databases/db_httpoptions
Expand Up @@ -16,6 +16,7 @@
"999978","PUT","397","HTTP method ('@TYPE@' Header): 'PUT' method could allow clients to save files on the web server."
"999982","MOVE","5647","HTTP method ('@TYPE@' Header): 'MOVE' may allow clients to change file locations on the web server."
"999983","CONNECT","0","HTTP method ('@TYPE@' Header): 'CONNECT' may allow server to proxy client requests."
"999984","PATCH","0","HTTP method: 'PATCH' may allow client to issue patch commands to server. See RFC-5789."
# WebDAV methods - "0" in nikto_id tells the code to treat it differently
"0","PROPFIND","0","webdav"
"0","PROPPATCH","0","webdav"
Expand Down
3 changes: 2 additions & 1 deletion program/plugins/nikto_httpoptions.plugin
Expand Up @@ -58,11 +58,12 @@ sub nikto_httpoptions {
# lots of FP on this one; disabling for now
#if (($content ne '') && ($res !~ /^3\d\d$/)) {
# add_vulnerability($mark, "Response body of OPTIONS / request is not empty--this may describe additonal REST/API services", 999980, 0, "OPTIONS", "/", $request, $response);
# }
# }

foreach my $o (split(/,[ ]?/, $aoptions)) {
$allow_methods .= ", $o" unless ($allow_methods =~ /\b$o\b/ || $o eq '');
}

$allow_methods =~ s/^[ ]?, //;
foreach my $o (split(/,[ ]?/, $poptions)) {
$public_methods .= ", $o" unless ($public_methods =~ /\b$o\b/ || $o eq '');
Expand Down

0 comments on commit 4378ecc

Please sign in to comment.