Skip to content

Security Audit & OWASP Top 10 Mapping ​

Vulnerability Analysis & Mitigations ​

OWASP CategoryRisk in Blog ApplicationImplemented Mitigation
A01: Broken Access ControlUnauthorized authors editing other users' blogsblog.controller.js validates blog.author.toString() === req.user.id before mutating
A02: Cryptographic FailuresWeak password storagePasswords hashed using bcrypt with work factor 10
A03: InjectionNoSQL query injection via malicious payloadMongoose strict schema casting prevents operator injection ($gt, $ne)
A07: Identification & AuthCredential stuffing & token tamperingStateless HS256 JWT tokens with expiration verification
A08: Software & Data IntegrityCompromised third-party media uploadsUploads validated and transformed strictly through Cloudinary SDK