Skip to main content
Security Misconfiguration: The OWASP Category Nobody Talks About

Security Misconfiguration: The OWASP Category Nobody Talks About

KU
· Founder & Chief Editor
• 8 min read•Updated •

Security misconfiguration quietly outranks flashier bugs as a top cause of breaches, yet teams rarely treat it as a real engineering problem.

Key takeaways

  • Security misconfiguration is A02 in the OWASP Top 10 2025, up from fifth place in 2021, and OWASP found some form of it in every application it tested.
  • It covers insecure defaults, public storage, verbose errors and unused services.
  • Prevent it with a hardened baseline, config in code, and automated checks in CI.

Security misconfiguration is A02 in the OWASP Top 10 2025: insecure defaults, unfinished hardening, public cloud storage, verbose errors and services nobody switched off. It is a property of how systems are set up and left, not of how they are coded. Fix it with a hardened default baseline, configuration in code, and automated checks on every change.

Verified against

OWASP Top 10 2025 (A02:2025 Security Misconfiguration), against the owasp.org Top 10 page and the AWS S3 Block Public Access user guide. Checked October 2026.

What counts as a misconfiguration?

The category is broad on purpose. It includes insecure defaults shipped by frameworks and cloud providers, configs that were never finished past "it works," public storage buckets, stack traces leaking to end users, admin panels reachable from the internet, unnecessary ports and services still enabled, missing security headers, and software running with default accounts nobody rotated. None of these require a clever attacker. Most get found by a scanner or a curious person poking at a URL.

OWASP has listed security misconfiguration in its Top 10 for over a decade. In the 2025 edition it moved up from fifth place to second, OWASP reports that 100% of the applications in its dataset had some form of it, and 16 CWEs map to the category (as of October 2026). Unlike injection or broken authentication, it isn't tied to a specific line of code. It's a property of the whole environment: the cloud account, the server, the framework defaults, the CI pipeline, all of it.

Why is misconfiguration so common?

Two forces drive it, and neither is a lack of skill.

First, speed. A team copies a setup from a tutorial or a Stack Overflow answer, gets it running, and moves on. The tutorial's insecure default (permissive CORS, debug mode on, a wide-open bucket policy) ships to production because revisiting "working" infrastructure isn't anyone's job until something breaks.

Second, convenience under pressure. Someone needs a storage bucket, a database, or an API gateway live by end of day. The fastest path is to grant broad permissions "just to get it working," intending to lock it down later. Later rarely comes, because nothing visibly fails when access is too open. A misconfigured resource looks identical to a correctly configured one until someone finds it.

Add in fast-moving cloud consoles where a checkbox change has global effect, sprawling infrastructure with dozens of services each carrying their own settings, and teams that inherit systems from people who left, and drift becomes the default state rather than the exception.

Recurring examples worth knowing by name

A few patterns show up constantly across audits and breach reports:

  • Public cloud storage. S3 buckets or blob containers set to public read (or public list), exposing backups, logs, or customer data.
  • Default credentials. Admin accounts still using the vendor's default username and password, or a "temporary" password from initial setup that was never changed.
  • Debug mode in production. Frameworks left in debug mode leak stack traces, environment variables, and internal file paths to anyone who triggers an error.
  • Directory listing enabled. Web servers that expose the full contents of a folder when there's no index file, handing out config files and old backups.
  • Unnecessary HTTP methods. PUT or DELETE left enabled on endpoints that only need GET and POST, widening what an attacker can attempt.
  • Overly permissive CORS. Access-Control-Allow-Origin set to * on endpoints that return authenticated data, which quietly breaks the same-origin protections browsers are supposed to enforce.
  • Wildcard IAM permissions. Cloud roles granted *:* because scoping them down took longer than the deadline allowed.

Open bucket vs. locked-down bucket

A storage policy that looks harmless but grants public access:

JSON
{
  "Effect": "Allow",
  "Principal": "*",
  "Action": "s3:GetObject",
  "Resource": "arn:aws:s3:::customer-uploads/*"
}

The fix scopes the principal to specific roles, removes the wildcard, and pairs it with account-level public access blocks:

JSON
{
  "Effect": "Allow",
  "Principal": { "AWS": "arn:aws:iam::123456789012:role/app-backend" },
  "Action": "s3:GetObject",
  "Resource": "arn:aws:s3:::customer-uploads/*",
  "Condition": { "Bool": { "aws:SecureTransport": "true" } }
}

Then turn on all four Block Public Access settings at the account level, which AWS recommends so a later bucket policy edit cannot reopen the door:

Terminal
aws s3control put-public-access-block \
    --account-id 123456789012 \
    --public-access-block-configuration \
    BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
aws s3control get-public-access-block --account-id 123456789012

New buckets already block public access by default, but anyone with s3:PutBucketPolicy can still attach a public policy to a single bucket; the account-level BlockPublicPolicy setting is what stops that. The full bucket-permission walkthrough lives in the S3 buckets and permissions tutorial.

Same bucket, same application, a completely different exposure profile. The difference is one principal field and a condition block, which is exactly why this class of bug is so persistent: the insecure version isn't obviously wrong to someone under deadline pressure.

How do you find misconfigurations before attackers do?

Manual config review still catches things automation misses, especially for logic like "should this service account really reach this database." But it doesn't scale across hundreds of resources, so it needs to pair with tooling:

  • Cloud security posture management (CSPM) tools that continuously check accounts against known-bad patterns like public buckets, open security groups, and wildcard IAM policies.
  • Manual checks of error pages, admin panels, and default routes, the same things a curious attacker would try first.
  • Dependency and version scanning to flag outdated software still running with vendor defaults.
  • Header and endpoint checks against a baseline, covered in more depth in the HTTP security headers guide.

None of these are exotic. Most misconfigurations are found with tools that have existed for years. The gap is usually that nobody ran them, or nobody acted on what they reported.

Prevention that actually holds

A one-time cleanup does not hold. What holds is changing what "default" means for your team.

Start with a minimal hardened baseline as the default configuration, not an opt-in step someone adds later. New services should launch with debug mode off, unnecessary ports closed, and least-privilege access, not the other way around.

Move configuration into infrastructure as code so every change to a bucket policy, security group, or IAM role goes through a reviewable, repeatable process instead of a console click nobody logs. Add automated config scanning to CI so a policy change that reopens a bucket gets caught before merge, not after a report from a researcher.

Disable what you don't use. Every open port, enabled HTTP method, and unused feature is something someone else has to secure and you have to remember exists. And segment environments cleanly, so a debug flag or verbose logging setting that's fine in staging can't leak into production because the same config file got copied over.

This is one piece of a larger discipline. For the broader picture, see our application security best practices.

Questions people ask

What is security misconfiguration in OWASP?

It is the OWASP Top 10 category for systems that are insecure because of how they were configured rather than how they were coded. In the 2025 list it is A02, up from fifth place in 2021. Typical cases are default credentials, directory listing, stack traces shown to users, public cloud storage, unneeded features left enabled, and missing security headers.

What is an example of a security misconfiguration?

The classic one is a cloud storage bucket whose policy grants s3:GetObject to "Principal": "*", exposing backups or customer files to anyone with the URL. Others from OWASP's own scenarios: an admin console still using its default password, a web server with directory listing on, and a framework in debug mode returning full stack traces that reveal component versions.

How do you prevent security misconfiguration?

Make the secure setup the default. OWASP recommends a repeatable, automated hardening process, identical configuration across dev, QA and production (with different credentials), a minimal platform with unused features removed, and automated checks that verify configuration in every environment. In practice that means infrastructure as code, a policy scanner in CI, and account-wide guardrails such as S3 Block Public Access.

The call we'd make

Treat configuration with the same rigor as code: reviewed, versioned, and tested before it ships. Security misconfiguration persists because it's invisible until someone looks, so build the looking into your pipeline instead of waiting for an incident to force it.

Sources

Explore topics:SecurityDevOps
React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). Security Misconfiguration: The OWASP Category Nobody Talks About. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/security-misconfiguration-guide

Markdown

[Security Misconfiguration: The OWASP Category Nobody Talks About](https://www.devopsness.com/blog/security-misconfiguration-guide) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)

KU

Kiril Urbonas

Founder & Chief Editor

607 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.