Closed postmodern closed 2 years ago
Sorry for the delay on replying. Do you know if this happens with the GitHub version of nikto? I don't typically support packaged installations--since most updates are via github and not a new version, they tend to become stale rather quickly.
Closed due to no response.
Sorry for the delay. After installing the perl-Net
package I was able to test nikto.pl
from HEAD and it seems to work as expected. So something is up with the Fedora package.
I suspected it was something with the packaging--thanks for confirming.
Something very similar happens when using a yum-installed version of Nikto on CentOS 7. HTML report contains uninterpolated variables. Txt/csv hardly any info. Will try to install an up-to-date version tomorrow. I hope the report will clarify why Nikto is complaining about a missing X-frame-options header even though I added one in my Nginx server block. 😵
@fomcl I don't support the OS installation packages because at the minimum they get pretty outdated, and at worst don't work or barely at all. The only program I support is if it was installed/downloaded via GitHub. If you still see oddities please open a new ticket for the issue(s). Cheers!
I think we should submit bug reports downstream to https://bugzilla.redhat.com/, since it appears CentOS/Fedora somehow broke their packages.
@postmodern feel free if you like. I can't possibly support all the packages for Nikto out there on various distributes :)
@fomcl If you use the -Save option, then you get the request and response for each issue and you will see whether the header is there or not.
I was testing the Fedora packages version of nikto (
nikto-2.1.6-8.fc34.noarch
) and noticed that XML output contains unrendered sections.Expected behavior
Properly rendered XML.
Actual behavior
XML contained unrendered template variables.
Steps to reproduce
sudo dnf install -y nikto
NIKTODTD
in/etc/nikto/config
to/usr/share/doc/nikto/nikto.dtd
(see fedora bug 2027511)nikto -host example.com -output nikto.xml
Nikto version
Further technical info
nikto_debug.log perl_version.txt