FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Nikto Scan Pod fails when no robot.txt is found · Issue #1249 · secureCodeBox/secureCodeBox · GitHub

Nikto Scan Pod fails when no robot.txt is found #1249

Description

Describe the bug

We run the SCB with nikto in our kubernetes cluster. When the nikto scan does not find an robot.txt it seems, that no file containing findings is created. Then the lurker tries to open that file, but fails. Therefore the corresponding pod fails and opens a new pod to scans the target again. The scan itself runs perfectly.

Steps To Reproduce

Run a nikto scan on a website, which has no robots.txt .

Expected behavior

When no robot.txt is found then there should be a findings file created with the content, that no robot.txt was found. Then the lurker should be able to read that file and the pod is running successful.

System (please complete the following information):

Kubernetes Version 1.22
SCB Operator 3.12.0
Nikto Scanner 3.12.0

Additional context

Logs of a failed pod. This logs are from the lurker:

2022/06/27 13:03:57 Starting lurker
2022/06/27 13:03:57 Waiting for main container 'nikto' to complete
2022/06/27 13:03:57 After scan is completed file '/home/securecodebox/nikto-results.json' will be uploaded to .... (The destination name was removed)
2022/06/27 13:03:57 Waiting for maincontainer to exit.
2022/06/27 13:04:02 Main Container exited. Lurker will end as well.
2022/06/27 13:04:02 Uploading result files.
2022/06/27 13:04:02 Uploading /home/securecodebox/nikto-results.json
2022/06/27 13:04:02 File has a size of 0 bytes
2022/06/27 13:04:02 Failed to read file
2022/06/27 13:04:02 open /home/securecodebox/nikto-results.json: no such file or directory

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugsscannerImplement or update a security scanner

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL