MLH-Fellowship / MLH-Fellowship/LearnForFree

[BUG] Django Project Misconfiguration

Open
#25 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi Opensource people,

After getting to know about LearnForFree Project and wanted to contribute to it, I had found few vulnerabilities on the Django project on Misconfiguration of its settings. As Django project, default configuration leads to DEBUG mode = TRUE but we have to look sensible while in production and there is a flaw on this project where it's DEBUG mode = TRUE. It should be FALSE while in production.

Impacts

Talking about impacts on this project, an attacker can obtain credentials

  • System Version(Django& Python)
  • Database credentials(Username, name, type=SQL/NOSQL)
  • Internal file path and details of project configurations
To Reproduce

Steps to reproduce the behavior:

  1. Go to 'LearnForFree'
  2. Request the URL as LearnForFree/anythinghere
  3. You can see the errors and path of the project.
  4. See errors

bug

Expected behavior
Instead of previewing the credentials and path of the project, it should redirect to 404 pages.

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 reviewing the Django project settings and reproduce the reported malformed-URL request against the deployed LearnForFree site. Done means production no longer exposes credentials, paths, or configuration details and the request instead returns a 404 page.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.