Giter VIP home page Giter VIP logo

Comments (5)

wheelq avatar wheelq commented on May 27, 2024

I get same even when I provide valid scanid (marked as successfull) using the swagger-ui.html

from securecodebox.

wheelq avatar wheelq commented on May 27, 2024

I found the issue, but before applying the fix, why does cli submit HOST without protocol?

from securecodebox.

rseedorff avatar rseedorff commented on May 27, 2024

Hi @wheelq
thanks for your hint and question. We have tried to implement the CLI in a more generic way, so that's easy to use and start some securityTests.

For example (short version)

  • ./run_scanner.sh zap https://some.system/somepath
  • ./run_scanner.sh nmap some.system

The CLI script the tries to identify if the "target parameter" contains a protocol, a port or just an IP and uses this informations separately to configure the different security scanner. ZAP for example needs an URL as target parameter, Nikto needs an hostname and port...

In which case is the protocol missing, can you explain your usecase or CLI call a bit?

from securecodebox.

wheelq avatar wheelq commented on May 27, 2024

Thanks @rseedorff

zap.template.json looks like this:
image

After issuing scan (like in the first post), run_scanner.sh does the following:

HOST_PORT=echo ${TARGET} | sed 's!^https?://!!g' | sed 's!/.$!!g' # hostname including user-provided port
HOST=echo ${HOST_PORT} | sed 's!:.
$!!g' # hostname only

So HOST becomes just the hostname, without the http(s)://
And this, when passed to the scanner, fails with error 500. After I modified the run_scanner.sh and swapped HOST with TARGET, scans are running fine.

from securecodebox.

fuhrmeistery avatar fuhrmeistery commented on May 27, 2024

Closed due to inactivity

from securecodebox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.