Ismail Tasdelen
Jan 27, 2023

--

This code creates a new instance of a User class with name, email, and password data passed from the $_POST['data'] variable decoded using json_decode. However, this code does not have any validation or cleanup that could lead to a security hole in user input. An attacker could transmit malicious data (such as an Object injection attack) that could compromise the security of the application. Additionally, the password must be hashed before it is stored in the database to protect against unauthorized access. We also recommend that you verify the email address format.

--

--

Ismail Tasdelen
Ismail Tasdelen

Written by Ismail Tasdelen

I'm Ismail Tasdelen. I have been working in the cyber security industry for +7 years. Don't forget to follow and applaud to support my content.

No responses yet