mirror of
https://github.com/clonos/control-pane.git
synced 2026-04-27 05:35:55 +03:00
[GH-ISSUE #44] Possible security problem #27
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/control-pane#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bozhinov on GitHub (Feb 25, 2021).
Original GitHub issue: https://github.com/clonos/control-pane/issues/44
github.com/clonos/control-pane@228e14b062/public/index.php (L73)<script type="text/javascript"> _first_start=true; err_messages={add:function(arr){for(n in arr){err_messages[n]=arr[n];}}}; user_id='1';user_login='admin'; </script>I can't find any reference to user_login anywhere else in the code
Question is if user_id is being passed to some other script like public\js\clonos.js
to be used for user deletion or other sensitive stuff ?
I mean I can craft the page to make myself admin. admin is user_id = 1
@olevole commented on GitHub (Feb 25, 2021):
You're right. apparently this is an artifact from the old code. I suppose it can be removed