Rules

A rule is a kind of finding. Its ID is stable, so you can filter, suppress, and track findings by it. Each rule includes a description and remediation.

This list is generated from yawast rules list --json for version 0.14.0.

  • app.aspnet.debug ASP.NET Debugging Enabled highCWE-11

    The application accepts the DEBUG verb, so compilation debugging is enabled (debug="true" in web.config). Debug builds are slower, can disclose detailed errors, and remote debugging should never be possible in production.

    Remediation and references

    Set in web.config for production.

    Microsoft - How to disable debugging for ASP.NET applications

  • app.aspnet.handlers ASP.NET Handlers Mapped lowCWE-16

    Requests for random names with these ASP.NET extensions reach ASP.NET handlers (they return ASP.NET errors rather than a plain 404). .rem and .soap mean .NET Remoting is enabled, which has a history of deserialization flaws; unused handlers add attack surface.

    Remediation

    Remove handler mappings the application does not use, especially .NET Remoting (.rem, .soap).

  • app.jira.detected Jira Detected info

    An Atlassian Jira instance was found. Its version (when shown) can be compared with Atlassian's security advisories.

    Remediation and references

    Keep Jira up to date; consider restricting it to authenticated or internal users.

    Atlassian security advisories

  • app.jira.signup Jira Public Sign-up Enabled lowCWE-284

    Anyone can create an account on this Jira instance, gaining access to projects visible to logged-in users and a larger attack surface.

    Remediation

    Disable public sign-up (Administration > System > General configuration > User email visibility / Mode).

  • app.php-fpm.cve-2019-11043 PHP-FPM Remote Code Execution (CVE-2019-11043) criticalCWE-787

    An encoded newline in the path, with certain query string lengths, crashed PHP-FPM workers behind nginx: the signature of CVE-2019-11043, a buffer underflow that public exploits turn into code execution. The scan only triggered the crash, which FPM recovers from.

    Remediation and references

    Update PHP (7.1.33, 7.2.24, 7.3.11 or later), and in nginx check that the script exists (try_files $fastcgi_script_name =404) before passing requests to PHP-FPM.

    CVE-2019-11043 · phuip-fpizdam (the public PoC)

  • app.rails.cve-2019-5418 Rails File Content Disclosure (CVE-2019-5418) criticalCWE-22

    A crafted Accept header makes Rails render an arbitrary file from the server: the response included the contents of /etc/passwd. Reading secrets (such as secrets.yml or credentials) can lead to code execution.

    Remediation and references

    Upgrade Rails to 6.0.0.beta3, 5.2.2.1, 5.1.6.2, 5.0.7.2, 4.2.11.1 or later.

    CVE-2019-5418

  • app.struts.sample Apache Struts Sample Application lowCWE-1295

    A Struts sample application (such as the showcase) is deployed. Sample applications are not meant for production, are rarely updated, and several were used to exploit Struts remote code execution flaws.

    Remediation

    Remove sample applications from production servers.

  • app.telerik.async-upload Telerik RadAsyncUpload Handler Enabled lowCWE-502

    The Telerik UI for ASP.NET AJAX RadAsyncUpload handler responds. Versions before 2020.1.114 (and older ones with default encryption keys) allow remote code execution through it (CVE-2019-18935, CVE-2017-11317, CVE-2017-11357).

    Remediation and references

    Update Telerik UI for ASP.NET AJAX, set unique encryption keys, and disable the handler if the application does not use RadAsyncUpload.

    Telerik - RadAsyncUpload security

  • app.tomcat.cgi-rce Tomcat CGI Command Injection (CVE-2019-0232) criticalCWE-78

    Tomcat's CGI servlet on Windows passes query string arguments to a batch script, and an argument starting with "&" ran a separate command (the harmless ver). Anyone can run commands on the server.

    Remediation and references

    Update Tomcat (9.0.19, 8.5.40, 7.0.94 or later) and set enableCmdLineArguments=false for the CGI servlet, or disable CGI.

    CVE-2019-0232

  • app.tomcat.host-manager Tomcat Host Manager Exposed highCWE-749

    The Tomcat Host Manager application is reachable. With its credentials, virtual hosts can be created and their applications deployed, which leads to code execution.

    Remediation

    Remove the Host Manager application, or restrict it to trusted addresses and use strong, unique credentials.

  • app.tomcat.manager Tomcat Manager Exposed highCWE-749

    The Tomcat Manager application is reachable. Anyone who obtains its credentials (default or weak passwords are common) can deploy a WAR file and run code on the server.

    Remediation and references

    Remove the Manager application, or restrict it to trusted addresses (RemoteAddrValve) and use strong, unique credentials.

    Apache Tomcat - Manager App How-To (security)

  • app.tomcat.manager-password Tomcat Manager Default Credentials criticalCWE-1392

    The Tomcat Manager or Host Manager accepts a default or documented example username and password. Anyone can log in and deploy a WAR file, running code on the server.

    Remediation

    Change the password (or remove the account) in conf/tomcat-users.xml, and restrict the console to trusted addresses.

  • app.tomcat.put-rce Tomcat JSP Upload via PUT (CVE-2017-12615, CVE-2017-12617) criticalCWE-434

    Tomcat's default servlet accepts PUT (readonly=false), and a JSP uploaded with a crafted name was run by the server: anyone can upload and execute code. The scan's JSP only prints a fixed string and was left on the server as evidence.

    Remediation and references

    Set readonly=true for the DefaultServlet in conf/web.xml (the default), update Tomcat, and remove the uploaded file.

    CVE-2017-12617 · CVE-2017-12615

  • app.wordpress.path-disclosure WordPress Plugin Path Disclosure lowCWE-209

    Requesting a plugin file directly produces a PHP fatal error that shows the server's file system path.

    Remediation

    Set display_errors=Off in production and block direct access to plugin files.

  • app.wordpress.user-enum WordPress Users Listed by the REST API mediumCWE-200

    The WordPress REST API (/wp-json/wp/v2/users) lists user accounts and their login slugs to unauthenticated visitors, giving attackers valid usernames for password guessing.

    Remediation

    Restrict the users endpoint to authenticated requests (for example with a security plugin or a rest_endpoints filter).

  • auth.user-enum.response User Enumeration via Response Differences mediumCWE-204

    A login or password-reset form responds differently for existing and non-existing accounts (message, status, or page content), letting attackers build lists of valid usernames for password guessing and phishing.

    Remediation and references

    Return identical responses for existing and non-existing accounts, for example "If an account exists, a reset link has been sent."

    OWASP - Authentication Cheat Sheet (Authentication and Error Messages)

  • auth.user-enum.timing User Enumeration via Response Timing lowCWE-208

    A login or password-reset form takes measurably longer for existing accounts (typically because a password hash is only computed for them), letting attackers determine which usernames are valid.

    Remediation

    Perform the same work for every request, for example by verifying against a dummy password hash when the account does not exist.

  • dns.caa.missing No CAA Records lowCWE-295

    Neither the host name nor any parent domain publishes a CAA record, so every certificate authority may issue certificates for it. CAA limits issuance to the authorities the owner uses, which reduces the damage of a mis-issuance or a compromised validation at another CA.

    Remediation and references

    Publish CAA records naming the certificate authorities you use (for example: example.com. CAA 0 issue "letsencrypt.org").

    RFC 8659 - DNS Certification Authority Authorization

  • dns.dnssec.missing DNSSEC Not Enabled infoCWE-345

    The domain publishes no DNSKEY records, so its DNS answers are not signed and resolvers cannot detect forged or altered responses.

    Remediation

    Enable DNSSEC at your DNS provider and publish the DS record with your registrar.

  • http.content.insecure-form Form Submits Over HTTP mediumCWE-319

    A form on an HTTPS page submits to a plain-HTTP URL, sending its contents (possibly credentials) unencrypted.

    Remediation

    Submit forms to HTTPS URLs.

  • http.content.internal-ip Internal IP Address Disclosed lowCWE-200

    A response contains a private (RFC 1918) IP address, revealing internal network addressing.

    Remediation

    Remove internal addresses from pages, comments, and headers.

  • http.content.mixed-content Mixed Content lowCWE-319

    An HTTPS page loads a resource over plain HTTP. Browsers block active mixed content (scripts, stylesheets, frames) and warn about passive content (images, media); either way an attacker on the network can see or alter the resource.

    Remediation

    Load all resources over HTTPS (or use relative URLs).

  • http.content.sri-missing Cross-Origin Script Without Subresource Integrity lowCWE-353

    A script is loaded from another origin without an integrity hash, so a compromise of that origin (such as a CDN) runs attacker code in this site.

    Remediation and references

    Add integrity and crossorigin attributes, or self-host the script.

    MDN - Subresource Integrity

  • http.cookies.bigip.ip-disclosure Internal Address in F5 BIG-IP Cookie lowCWE-200

    An unencrypted F5 BIG-IP persistence cookie encodes the address and port of the backend server, disclosing internal network details.

    Remediation

    Enable cookie encryption in the BIG-IP persistence profile.

  • http.cookies.httponly.missing Cookie Missing HttpOnly Flag lowCWE-1004

    A cookie lacks the HttpOnly flag, so it can be read by JavaScript. If the cookie carries session state, an XSS flaw could be used to steal it.

    Remediation

    Set the HttpOnly attribute on cookies that do not need to be read by scripts.

  • http.cookies.samesite.missing Cookie Missing SameSite Attribute infoCWE-1275

    A cookie does not specify a SameSite attribute, leaving cross-site request behavior to browser defaults.

    Remediation

    Set SameSite=Lax or SameSite=Strict explicitly.

  • http.cookies.samesite.none Cookie with SameSite=None infoCWE-1275

    A cookie is explicitly sent on cross-site requests (SameSite=None), which removes the browser's default CSRF mitigation for it.

    Remediation

    Use SameSite=Lax or Strict unless the cookie must be sent cross-site.

  • http.cookies.samesite.none-insecure SameSite=None Cookie Without Secure lowCWE-614

    A cookie sets SameSite=None without the Secure attribute. Browsers reject such cookies, so the feature relying on it may silently fail.

    Remediation

    Add the Secure attribute to SameSite=None cookies (and serve the site over HTTPS).

  • http.cookies.secure.missing Cookie Missing Secure Flag lowCWE-614

    A cookie set over HTTPS lacks the Secure flag, so it may be sent over an unencrypted connection.

    Remediation

    Set the Secure attribute on all cookies served over HTTPS.

  • http.cookies.secure.over-http Secure Cookie Set Over HTTP infoCWE-319

    A cookie with the Secure attribute was set by a plain-HTTP response. Browsers ignore it, which indicates the site is (also) served without TLS.

    Remediation

    Serve the site over HTTPS only and redirect HTTP.

  • http.cors.origin-reflected CORS Reflects Arbitrary Origins with Credentials highCWE-942

    The response reflects an arbitrary Origin (or "null") in Access-Control-Allow-Origin and allows credentials, so any website can make authenticated requests and read the responses, including user data and CSRF tokens.

    Remediation and references

    Validate Origin against an explicit allow-list before reflecting it.

    PortSwigger - CORS vulnerabilities

  • http.cors.wildcard CORS Allows Any Origin infoCWE-942

    The response sends Access-Control-Allow-Origin: *, letting any site read it. This is appropriate for public data; browsers refuse to combine it with credentials, so authenticated data is not exposed this way.

    Remediation

    Confirm the resource is public; otherwise restrict allowed origins.

  • http.csp.allowlist-bypass Content-Security-Policy Allowlists Hosts With Known Bypasses lowCWE-693

    The policy allows scripts from hosts that let an attacker run code of their choosing: hosts serving AngularJS (whose templates in injected markup execute), JSONP endpoints (whose callback parameter names the function to call), public package CDNs, or domains where anyone can host files. Injected markup can use them to get around the policy.

    Remediation and references

    Replace the host allowlist with nonces or hashes and 'strict-dynamic', or allow only the exact paths needed on those hosts.

    CSP Is Dead, Long Live CSP! (Weichselbaum et al., CCS 2016)

  • http.csp.base-uri Nonce-Based Content-Security-Policy Without base-uri lowCWE-693

    The policy allows scripts by nonce or hash but does not set base-uri (which default-src does not cover). Injected changes where the page's relative script URLs load from, so an attacker's scripts load with the page's own nonce.

    Remediation

    Add "base-uri 'none'" (or 'self').

  • http.csp.deprecated Deprecated Content-Security-Policy Directives info

    The policy uses directives that browsers no longer support (or never did), which have no effect.

    Remediation

    Remove them, using their replacements where listed.

  • http.csp.no-script-restriction Content-Security-Policy Does Not Restrict Scripts lowCWE-693

    The policy has neither script-src nor default-src, so it places no limit on scripts and gives no protection against cross-site scripting (it may still set other directives, such as frame-ancestors).

    Remediation

    Add script-src (ideally with nonces or hashes and 'strict-dynamic') or a restrictive default-src.

  • http.csp.nonce Weak Content-Security-Policy Nonce lowCWE-330

    The policy's nonce can be predicted: it was the same in two responses (a page cached with its nonce, or a fixed value), or it is too short to be unguessable. Injected script can carry the nonce and run.

    Remediation

    Generate a new random nonce of at least 128 bits for every response, and do not cache pages that carry one.

  • http.csp.object-src Content-Security-Policy Does Not Restrict Plugins infoCWE-693

    Neither object-src nor default-src restricts and . Browsers have dropped plugins, but object-src 'none' remains standard hardening, and older browsers could run plugin content around the script policy.

    Remediation

    Add "object-src 'none'".

  • http.csp.report-only Content-Security-Policy Only in Report-Only Mode lowCWE-693

    The site sends only Content-Security-Policy-Report-Only: violations are reported, but nothing is blocked, so the policy gives no protection.

    Remediation

    Once reports show the policy does not break the site, send it as Content-Security-Policy.

  • http.csp.syntax Content-Security-Policy Syntax Problems lowCWE-693

    The policy contains mistakes browsers accept silently, so it does not do what it appears to: unquoted keywords (self is a host name; 'self' is the keyword), a missing semicolon (the next directive's name becomes a source), misspelled or unknown directives (ignored), 'none' mixed with other sources, malformed nonces or hashes, repeated directives (only the first counts), or directives a policy cannot set.

    Remediation

    Fix the listed problems; validate the policy with a CSP evaluator before deploying it.

  • http.csp.unsafe-eval Content-Security-Policy Allows eval infoCWE-693

    The policy allows eval and similar ('unsafe-eval'), so injection into code that reaches eval, setTimeout with a string, or new Function is not blocked. Some frameworks require it.

    Remediation

    Remove 'unsafe-eval' where the application allows; use 'wasm-unsafe-eval' if only WebAssembly needs it.

  • http.csp.unsafe-inline Content-Security-Policy Allows Inline Script lowCWE-693

    The policy allows inline script ('unsafe-inline' without a nonce or hash, for script elements or event handlers), so injected