10-16-2017, 05:07 PM
Here is few bugs I have found so far, may be I will remember some more that I patched for myself, so here is what i've found:
found bugs:
1) http://localhost/usercontrol/users/admin_user.php?id=2
not using global settings for name length
should be changed to
<pre></pre>
2) - helpers.php - remove - that br resulting content to slip below on every page that function called
3) http://localhost/usercontrol/users/admin...ssions.php
- dublicate of
<pre></pre>
that decleared above - that 2 lines should be removed, preventing any message to appear
4) http://localhost/usercontrol/users/admin...ssions.php
- echoing error to nowere, appearing above in black ugly block
should be
5) http://localhost/usercontrol/users/profile.php?id=0
giving wrong id, resulting in banch of errors
Security issues:
1) http://localhost/usercontrol/users/admin.php
2 forms have no csrf protection - adding session token will solve that (i am using both session and per-request tokens)
2) http://localhost/usercontrol/users/admin...n.php?id=1
, value of is not sanitized
3) user name validation - user can create crazy names like <script>lala - should not allow that
That may be not bugs but logic flaws:
1) http://localhost/usercontrol/users/joinThankYou.php - should redirect if logged in?
2) http://localhost/usercontrol/users/join.php - should redirect if logged in?
3) http://localhost/usercontrol/users/login.php - should redirect if logged in?
4) http://localhost/usercontrol/users/maintenance.php - should redirect if no maintenance?
found bugs:
1) http://localhost/usercontrol/users/admin_user.php?id=2
not using global settings for name length
Code:
line 57, 58
<pre>
Code:
'min' => $settings->min_un,
'max' => $settings->max_un
2)
Code:
function display_errors($errors = array())
Code:
echo "<br>"
3) http://localhost/usercontrol/users/admin...ssions.php
Code:
line 97,98
<pre>
Code:
$errors = [];
$successes = [];
that decleared above - that 2 lines should be removed, preventing any message to appear
4) http://localhost/usercontrol/users/admin...ssions.php
Code:
line 65
Code:
echo "Permission Updated";
Code:
$successes[] = 'TEXT';
5) http://localhost/usercontrol/users/profile.php?id=0
giving wrong id, resulting in banch of errors
Security issues:
1) http://localhost/usercontrol/users/admin.php
2 forms have no csrf protection - adding session token will solve that (i am using both session and per-request tokens)
2) http://localhost/usercontrol/users/admin...n.php?id=1
Code:
line 28
Code:
$_GET
3) user name validation - user can create crazy names like <script>lala - should not allow that
That may be not bugs but logic flaws:
1) http://localhost/usercontrol/users/joinThankYou.php - should redirect if logged in?
2) http://localhost/usercontrol/users/join.php - should redirect if logged in?
3) http://localhost/usercontrol/users/login.php - should redirect if logged in?
4) http://localhost/usercontrol/users/maintenance.php - should redirect if no maintenance?