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

Found a vulnerability #35

Open
bacskaicsaba91 opened this issue Oct 14, 2023 · 1 comment
Open

Found a vulnerability #35

bacskaicsaba91 opened this issue Oct 14, 2023 · 1 comment

Comments

@bacskaicsaba91
Copy link

patient/schedule.php

include("../connection.php");
$sqlmain= "select * from patient where pemail=?";
$stmt = $database->prepare($sqlmain);
$stmt->bind_param("s",$useremail);
$stmt->execute();
$result = $stmt->get_result();
$userfetch=$userrow->fetch_assoc();
$userid= $userfetch["pid"];
$username=$userfetch["pname"];`

Error: Warning: Undefined variable $userrow in /Applications/MAMP/htdocs/edoc/patient/schedule.php on line 47

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on null in patient/schedule.php:47 Stack trace: #0 {main} patient/schedule.php on line 47

@bacskaicsaba91 bacskaicsaba91 changed the title Found vulnerability Found a vulnerability Oct 14, 2023
@ikiptoo809
Copy link

Code in that "patient/schedule.php" has been commented out, have you managed to get it to run?

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