Secure configuration is a cornerstone of application security, yet it is frequently overlooked. This category tests whether web servers, application platforms, and cloud services are deployed with hardened settings rather than insecure defaults. Misconfiguration issues range from exposed admin interfaces and verbose error messages to missing security headers and overly permissive file permissions. These issues are particularly dangerous because they often require no authentication to exploit and can be found through automated scanning. For security professionals, understanding configuration hardening is essential for both offensive testing and defensive architecture reviews.
OWASP Top 10 Mapping
This testing category relates to the following OWASP Top 10 2021 categories:
Quick Reference
| Test ID | Name | CWEs | Difficulty |
|---|---|---|---|
| WSTG-CONF-01 | Network Infrastructure Config | CWE-16 | Intermediate |
| WSTG-CONF-02 | Application Platform Config | CWE-16, CWE-2 | Intermediate |
| WSTG-CONF-03 | File Extensions Handling | CWE-538, CWE-200 | Intermediate |
| WSTG-CONF-04 | Backup and Unreferenced Files | CWE-538, CWE-530 | Intermediate |
| WSTG-CONF-05 | Admin Interface Enumeration | CWE-16, CWE-200 | Intermediate |
| WSTG-CONF-06 | HTTP Methods Testing | CWE-16 | Intermediate |
| WSTG-CONF-07 | HSTS Testing | CWE-319, CWE-16 | Intermediate |
| WSTG-CONF-08 | RIA Cross Domain Policy | CWE-16, CWE-346 | Intermediate |
| WSTG-CONF-09 | File Permissions Testing | CWE-732, CWE-276 | Intermediate |
| WSTG-CONF-10 | Subdomain Takeover | CWE-16 | Intermediate |
| WSTG-CONF-11 | Cloud Storage Testing | CWE-16, CWE-284 | Intermediate |
Detailed Test Cases
WSTG-CONF-01: Network Infrastructure Config
IntermediateThis test evaluates the security configuration of network infrastructure components including firewalls, routers, load balancers, and DNS servers. It checks for unnecessary open ports, weak access controls, and insecure protocols that could provide an entry point into the environment.
What to Check
- Scan for unnecessary open ports and services on the server
- Verify that administrative interfaces are not publicly accessible
- Check for insecure protocols (Telnet, FTP, unencrypted SNMP)
- Test DNS configuration for zone transfer vulnerabilities
- Review firewall rules for overly permissive configurations
WSTG-CONF-02: Application Platform Config
IntermediateThis test reviews the configuration of application platforms such as web servers, application servers, and database servers. It checks for insecure default settings, unnecessary features, debug modes left enabled, and missing security hardening measures.
What to Check
- Check for debug mode or verbose error configuration in production
- Verify that default or sample applications have been removed
- Review logging configuration for sensitive data exposure
- Test that directory listing is disabled on the web server
- Confirm unnecessary modules and features are disabled
WSTG-CONF-03: File Extensions Handling
IntermediateThis test examines how the web server handles different file extensions, particularly whether it exposes source code or sensitive files when requested with specific extensions. Mishandled extensions can cause the server to serve raw source code instead of executing it.
What to Check
- Request files with backup extensions (.bak, .old, .orig, .copy, .tmp)
- Test for source code disclosure using tilde (~) or editor-generated extensions
- Check if the server handles file extension case sensitivity correctly
- Look for configuration files accessible through extension manipulation
- Verify that server-side script extensions are always processed, never served raw
WSTG-CONF-04: Backup and Unreferenced Files
IntermediateThis test searches for old backup files, unreferenced pages, and leftover development artifacts on the web server. These files often contain sensitive information, source code, or older versions of the application with known vulnerabilities.
What to Check
- Brute-force common backup file patterns (.zip, .tar.gz, .sql, .bak for each known file)
- Search for version control artifacts (.git, .svn, .hg directories)
- Look for database dumps and SQL backup files
- Check for IDE and editor temporary files (.swp, .swo, ~files)
- Scan for unreferenced administrative or test pages
WSTG-CONF-05: Admin Interface Enumeration
IntermediateThis test identifies administrative interfaces for both infrastructure components and the application itself. Admin panels often provide elevated access and may be protected only by obscurity rather than proper authentication and access controls.
What to Check
- Scan for common admin panel paths (/admin, /administrator, /manage, /console)
- Check for infrastructure management interfaces (phpMyAdmin, Tomcat Manager, cPanel)
- Look for admin interfaces on non-standard ports
- Test discovered admin panels for default credentials
- Verify that admin interfaces enforce strong authentication and IP restrictions
WSTG-CONF-06: HTTP Methods Testing
IntermediateThis test checks which HTTP methods the web server accepts and whether dangerous methods like PUT, DELETE, or TRACE are enabled. Unnecessary HTTP methods can allow attackers to upload malicious files, delete content, or perform cross-site tracing attacks.
What to Check
- Send an OPTIONS request to enumerate allowed HTTP methods
- Test if PUT method allows arbitrary file uploads
- Check if DELETE method can remove files from the server
- Verify TRACE method is disabled to prevent cross-site tracing (XST)
- Test for HTTP method override headers (X-HTTP-Method-Override, X-Method-Override)
WSTG-CONF-07: HSTS Testing
IntermediateThis test verifies that HTTP Strict Transport Security (HSTS) is properly implemented to force browsers to only connect via HTTPS. Without HSTS, users may be vulnerable to SSL stripping attacks where an attacker downgrades the connection from HTTPS to HTTP.
What to Check
- Verify the Strict-Transport-Security header is present in HTTPS responses
- Check that the max-age value is sufficiently long (at least 31536000 seconds / 1 year)
- Confirm includeSubDomains directive is set if subdomains should also use HTTPS
- Check if the domain is in the HSTS preload list for maximum protection
- Test that HTTP requests properly redirect to HTTPS before serving content
WSTG-CONF-08: RIA Cross Domain Policy
IntermediateThis test examines cross-domain policy files (crossdomain.xml for Flash and clientaccesspolicy.xml for Silverlight) that control which external domains can interact with the application. Overly permissive policies can allow any domain to make cross-origin requests.
What to Check
- Check for the existence of crossdomain.xml in the web root
- Check for clientaccesspolicy.xml in the web root
- Verify that policies do not use wildcard (*) domain permissions
- Ensure policies restrict allowed domains to trusted partners only
- Confirm that policies specify secure=true for HTTPS-only access
WSTG-CONF-09: File Permissions Testing
IntermediateThis test reviews file and directory permissions on the web server to ensure sensitive files are not world-readable and that upload directories do not allow script execution. Incorrect permissions can expose configuration files, logs, and credentials.
What to Check
- Verify configuration files are not readable by the web server user
- Check that log files are not accessible through the web server
- Ensure upload directories do not have execute permissions
- Review file ownership to confirm principle of least privilege
- Test for directory traversal paths that might access restricted files
WSTG-CONF-10: Subdomain Takeover
IntermediateSubdomain takeover occurs when a DNS record (usually a CNAME) points to an external service that the organization no longer controls. An attacker can register the abandoned service and serve content under the organization's trusted domain.
What to Check
- Enumerate all subdomains and their DNS records (A, CNAME, MX)
- Identify CNAME records pointing to external services (AWS, Azure, GitHub Pages, Heroku)
- Check if the target services return error pages indicating unclaimed resources
- Verify that decommissioned services have had their DNS records removed
- Test if you can register the orphaned service endpoint
WSTG-CONF-11: Cloud Storage Testing
IntermediateThis test checks whether cloud storage services (S3 buckets, Azure Blobs, Google Cloud Storage) associated with the application are securely configured. Misconfigured cloud storage is one of the most common causes of large-scale data breaches.
What to Check
- Enumerate cloud storage endpoints from application source code and DNS records
- Test S3 buckets for public read access (ListBucket, GetObject)
- Check for public write permissions that could allow data modification
- Verify that bucket policies and ACLs follow the principle of least privilege
- Look for cloud storage URLs in JavaScript files, error messages, and metadata
Relevant Certifications
The following certifications cover configuration and deployment management concepts:
Frequently Asked Questions
What are the most common web server misconfigurations that lead to security vulnerabilities?
The most common misconfigurations include default credentials on admin interfaces, directory listing enabled, verbose error messages exposing stack traces, missing security headers (HSTS, CSP, X-Frame-Options), unnecessary HTTP methods enabled (PUT, DELETE, TRACE), and outdated TLS configurations. These issues are easy to find and easy to fix, which is why they appear so frequently in security assessments.
How does WSTG-CONF relate to the OWASP Top 10?
WSTG-CONF maps directly to OWASP Top 10 A05: Security Misconfiguration, which covers missing security hardening, unnecessary features enabled, default accounts, overly informative error messages, and misconfigured security headers. It is consistently one of the most prevalent vulnerability categories found in real-world applications.
What is subdomain takeover and why is it a configuration issue?
Subdomain takeover occurs when a DNS record points to a service (like a cloud hosting platform) that the organization no longer controls. An attacker can claim the orphaned service and serve malicious content under the organization's domain. This is a configuration management issue because it results from failing to clean up DNS records when decommissioning services.
CyberFolio
Mastering web security testing? Showcase your skills.
Build a free, shareable cybersecurity portfolio that highlights your certifications, projects, and skills.
Build Your Portfolio →