MLH-Fellowship / MLH-Fellowship/LearnForFree
[BUG] Django Project Misconfiguration
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:
- Go to 'LearnForFree'
- Request the URL as LearnForFree/anythinghere
- You can see the errors and path of the project.
- See errors

Expected behavior
Instead of previewing the credentials and path of the project, it should redirect to 404 pages.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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