Scanning websites

yawast scan crawls a site, tests what it finds, and checks the server, its TLS, and its domain along the way.

yawast scan https://staging.example.com

What it does

  1. Resolves the target. It follows redirects from HTTP to HTTPS and between www and the bare domain, as long as they stay on the same domain.
  2. Discovers. A parallel crawler starts from the target, robots.txt, and sitemaps, and collects pages, forms, and parameters.
    • Client-rendered applications are loaded in headless Chrome, so their routes, forms, and API calls are found too.
    • Opt-in checks add yawast’s wordlists (about 35,000 names) and backup-file guesses.
  3. Identifies the stack. Headers, cookies, page markers, and error messages say what the site runs. yawast skips probes that cannot apply to it, and notes each skip.
  4. Tests. It runs passive checks on everything collected, and active checks at the level you allow.

What it finds

  • Injection: SQL injection (error, boolean, and time-based), reflected XSS, command injection, open redirects, and DOM-based XSS. DOM XSS is found by static analysis, with confirmation in a browser as an opt-in check.
  • Configuration: security headers, cookies, CORS, Content-Security-Policy weaknesses (not just whether there is one), and HTTP methods.
  • Exposure: Git and Mercurial repositories, .env files, backups, .DS_Store files, directory listings, phpinfo() pages, detailed error messages, and internal IP addresses.
  • Software: outdated or unsupported servers and languages, and JavaScript libraries with known vulnerabilities.
  • Applications: Tomcat (versions, Manager default credentials, PUT and CGI RCE), WordPress, Rails, ASP.NET, Telerik, Struts, Jira, and PHP-FPM (CVE-2019-11043).
  • Accounts: user enumeration through login and password reset forms.
  • TLS and DNS: the site’s certificate and TLS configuration (TLS), and its domain’s DNS and mail policies (DNS).

The check reference lists every check, and the rule reference lists every kind of finding.

JavaScript applications

--render auto (the default) loads pages in headless Chrome when they need it: an empty framework mount point, or a <noscript> asking for JavaScript. yawast then adds the routes and forms they render, and turns the API requests they make into injection points. --render always renders every page, and --render never turns rendering off.

Signing in

To scan what a signed-in user sees:

YAWAST_LOGIN_PASSWORD='…' yawast scan https://app.example.com --login-user alice@example.com

yawast signs in through the browser, so HTML forms and script-driven sign-ins both work. It sends the session with every request, and redacts the session and password from the report. --login-url names the sign-in page when yawast cannot find it. Passing the password in YAWAST_LOGIN_PASSWORD keeps it out of your shell history.

Behind a CDN

A CDN hides the origin server. If you know what the site runs, say so, and yawast skips probes that cannot apply. --stack off sends everything.

yawast scan https://example.com --assume php,linux