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

Bypass authentication with SQL Injection #17

Open
truonghuuphuc opened this issue Jan 25, 2022 · 1 comment
Open

Bypass authentication with SQL Injection #17

truonghuuphuc opened this issue Jan 25, 2022 · 1 comment

Comments

@truonghuuphuc
Copy link

VULNERABLE: SQL Injection Authentication Bypass exists in Hospital-Management-System. An attacker can inject query in “/Hospital-Management-System-master/func.php" via the ‘email’ parameters.

  • Description: The vulnerability is present in the “/Hospital-Management-System-master/func.php " , and can be exploited throuth a POST request via the ‘email’ parameters.
  • Impact: Allow attacker inject query and access , disclosure of all data on the system.
  • Suggestions: User input should be filter, Escaping and Parameterized Queries.
  • Payload: email =' or 1 limit 0,1#
  • File affect:
  • code
  • Proof of concept (POC):
  • Inject payload:
  • Login
  • Bypass authentication success and redirect admin panel
  • done
@adivardhan1000
Copy link

bad cookie management. Cookies are getting stored but not checked correctly

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