OWASP / OWASP/SecurityShepherd

[BUG] Mongo setting in setup wizard doesn't affect mongo challenge availability

Open
#526 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Java
Stars
1.5k
Forks
515
Avg merge
3h 46m
Merged PRs (30d)
1

Description

Describe the bug
The NoSQL injection challenge is still enabled even if the admin doesn't enable the mongo db in the setup wizard.

To Reproduce
Steps to reproduce the behavior:

  1. Clear the database
  2. Go to setup wizard
  3. Fill everything out, but don't check the mongo checkbox
  4. The NoSQL challenge is enabled
  5. The challenge can't be completed because the database isn't available.

Expected behavior
The nosql injection challenge should be disabled

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the setup wizard flow: clear the database, leave the Mongo checkbox unchecked, and confirm that the NoSQL injection challenge remains enabled. Trace how the Mongo setting controls challenge availability, then verify that the challenge is disabled when MongoDB is not enabled and remains available when it is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.