Web Security & OWASP (50 Qs)•Part 2: OWASP Top 10 & Critical Vulnerability Deep-Dives (11 - 25)
Security Misconfiguration: Public cloud storage buckets, verbose error stack traces, and default configs.
The Most Pervasive Enterprise Flaw
Security Misconfiguration represents failures to harden the environment, including leaving default credentials active, exposing unneeded HTTP methods, leaving debugging interfaces open, and displaying verbose stack traces.
arduino
Vulnerable Production Response (Leaking Stack Trace & Internal Paths):
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
{
"error": "SequelizeConnectionError: connect ECONNREFUSED 10.0.4.15:5432",
"stack": "at Connection.connect (/app/node_modules/pg/lib/connection.js:65:17)
at /app/src/services/userService.ts:42:15"
}
Attacker gains: Internal DB IP (10.0.4.15), ORM in use (Sequelize/pg), file paths (/app/src).
Secure Sanitized Response:
HTTP/1.1 500 Internal Server Error
{
"statusCode": 500,
"message": "An unexpected error occurred. Request ID: req_9a8b7c6d"
}
Critical Hardening Checklist
- AWS S3 Block Public Access: Enable at the AWS Account level.
- Disable Directory Indexing: Ensure web servers (NGINX/Apache) never list directory contents (
autoindex off;). - Remove Default Accounts & Passwords: Disable default administrative users in Redis, RabbitMQ, and Jenkins.
- Docker Socket Isolation: Never mount
/var/run/docker.sockinto application containers.