Forum Discussion
luk
7 years agoBoss
iarriola Just a remark: What the above code does, is extremely dangerous...do you realize that because you use restadmin() and a USER-DEFINABLE $_GET parameter "userId", that ANYBODY could get the personal_data of any other user, not just himself...
In other words: restadmin() elevates anybody to Admin level in terms of API permissions, and you allow the user to specify the ID of the user to query personal_data about...
I would say, be happy it returns an empty object for now =)!
Related Content
- 3 years ago
- 11 months ago