webPromedium

Lab 37 — WriteFlow — NoSQL Injection via Nested $where in Mongoose Populate

hackadvisor

Task: Node.js/Express blogging platform using MongoDB/Mongoose with server-side author role filtering in populate() match conditions, and a JSON-accepting authorFilter parameter. Solution: inject {\"role\":\"admin\"} via authorFilter to override the default role exclusion in Mongoose populate match, revealing hidden admin-only posts containing the flag.

$ ls tags/ techniques/
nosql_injection_via_json_parametermongoose_populate_match_overrideauthorization_bypass_via_filter_manipulationhidden_content_discovery

🔒

Permission denied (requires tier.pro)

Sign in to access full writeups

Sign in with GitHub to continue. No email required.

$sign in

$ grep --similar

Similar writeups