Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird Behavior of GET Request Parameters #30

Open
Bikash-Bhatta opened this issue Sep 21, 2022 · 1 comment
Open

Weird Behavior of GET Request Parameters #30

Bikash-Bhatta opened this issue Sep 21, 2022 · 1 comment

Comments

@Bikash-Bhatta
Copy link

I was just tampering with the request sent in the URL, then I found that when I was entering sql queries it is not showing error.
Apart from that when I entered "?var=True"(so that all variables enterted become true), it throw me a message that email is verified.
2022-09-21

This could be tampered other way to get into the system without being logged in.
It doesn't even throw error when I entered SQL query(or 'a'='a) which is again a problem.
2022-09-21 (1)

This small loopholes leads to the breaking into the system so these should be fixed.

Solution

  1. Change the request parameter from GET to POST, atleast one can be prevented to tamper with the URL because he will not get the idea from where to where request is being transferred.
  2. Change the website script so that it will through error when variables, symbols and SQL queries are being entered.
@PeithonKing PeithonKing changed the title Not displaying error when executing commands in the URL Weird Behavior of GET Request Parameters Nov 10, 2022
@PeithonKing
Copy link
Member

PeithonKing commented Nov 10, 2022

This can be solved easily by using the django messages framework.

The code will be more generalised and versatile in that way.

@Bikash-Bhatta Changed the name because I have read the archive code and know exactly where the problem is. Not displaying an error is actually a better reaction because in the backend actually it is not even reading the parameters. There is nothing you can do to break it when it is ignoring everything you say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants