Title: Nikto parser unable to handle error cases · Issue #604 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: Nikto parser unable to handle error cases · Issue #604 · secureCodeBox/secureCodeBox
X Title: Nikto parser unable to handle error cases · Issue #604 · secureCodeBox/secureCodeBox
Description: 🐞 Bug report Describe the bug The Nikto parser is unable to properly parse findings when Nikto could not find a webserver (returns error as raw finding). Steps To Reproduce With Nikto installed, run a scan on a domain without a running w...
Open Graph Description: 🐞 Bug report Describe the bug The Nikto parser is unable to properly parse findings when Nikto could not find a webserver (returns error as raw finding). Steps To Reproduce With Nikto installed, ru...
X Description: 🐞 Bug report Describe the bug The Nikto parser is unable to properly parse findings when Nikto could not find a webserver (returns error as raw finding). Steps To Reproduce With Nikto installed, ru...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/604
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nikto parser unable to handle error cases","articleBody":"## 🐞 Bug report\r\n\r\n### Describe the bug\r\n\r\nThe Nikto parser is unable to properly parse findings when Nikto could not find a webserver (returns error as raw finding).\r\n\r\n### Steps To Reproduce\r\nWith Nikto installed, run a scan on a domain without a running webserver.\r\n\r\n```\r\napiVersion: execution.securecodebox.io/v1\r\nkind: Scan\r\nmetadata:\r\n name: nuclei-scan\r\n namespace: securecodebox-scanners\r\nspec:\r\n parameters:\r\n - -host\r\n - google.com\r\n - -port\r\n - \"8080\"\r\n - -Tuning\r\n - 1,2,3,5,7,b\r\n scanType: nikto\r\n```\r\n\r\n**Nikto logs**\r\n```\r\n- Nikto v2.1.6\r\n---------------------------------------------------------------------------\r\n+ No web server found on google.com:8080\r\n---------------------------------------------------------------------------\r\n+ 0 host(s) tested\r\n```\r\n\r\n**Nikto raw findings**\r\n```json\r\n{\"id\": \"000029\",\"OSVDB\": \"0\",\"url\":\"/\",\"msg\":\"No web server found on google.com:8080\"}}\r\n```\r\n\r\n**Parser logs**\r\n```\r\nStarting Parser\r\nFetching result file\r\nFetched result file\r\nParser failed with error:\r\nTypeError: Cannot read property 'filter' of undefined\r\n at parse (/home/app/parser-wrapper/parser/parser.js:47:26)\r\n at main (/home/app/parser-wrapper/parser-wrapper.js:126:22)\r\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\r\n```\r\n\r\nFurthermore, running Nikto on an unresolvable domain name, results in an empty raw findings file. Parser crashes with the same error.\r\n\r\n### Expected behavior\r\nIf there are no findings, or if Nikto encounters an error, the parser should not crash. The parser should create a finding of Nikto's error.\r\n\r\n### System (please complete the following information):\r\nsecureCodeBox v3.0.1\r\n","author":{"url":"https://github.com/EndPositive","@type":"Person","name":"EndPositive"},"datePublished":"2021-08-20T14:25:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/604/secureCodeBox/issues/604"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ec60b12b-d0bb-9691-8e1a-4e0a29947971 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A736:2477FA:2649018:353AFCF:6977A4B5 |
| html-safe-nonce | 84b19bacd38d64a054d665732ea9781e182b737184da24bca2d4655541f3e41d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzM2OjI0NzdGQToyNjQ5MDE4OjM1M0FGQ0Y6Njk3N0E0QjUiLCJ2aXNpdG9yX2lkIjoiNzUxNDAxNDg5MDYzNzg5NDgzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4d1d99c9e98a67d351c7af76742a7294e929eabe794beb07daa771be56457b14 |
| hovercard-subject-tag | issue:975659958 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/604/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cefc301789dd633893c386205ce44a1983a6e7f368121963b73528f0ae7319b4/secureCodeBox/secureCodeBox/issues/604 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cefc301789dd633893c386205ce44a1983a6e7f368121963b73528f0ae7319b4/secureCodeBox/secureCodeBox/issues/604 |
| og:image:alt | 🐞 Bug report Describe the bug The Nikto parser is unable to properly parse findings when Nikto could not find a webserver (returns error as raw finding). Steps To Reproduce With Nikto installed, ru... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EndPositive |
| hostname | github.com |
| expected-hostname | github.com |
| None | e8b91803a5fc7ac066710509c57c636dab6ed4620bd9213b470a4617c79989c9 |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9b4562e3c5c60b38349a7d80ec8e160c11fe84b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width