Zepo. Posted December 8, 2007 Share Posted December 8, 2007 www.eliteladders.com/devlopment/ Please report any problems, errors, security issues, ect. please. Any ideas or comment would be greatly appreciated, if you would like to test the admincp them pm me. Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/ Share on other sites More sharing options...
helraizer Posted December 8, 2007 Share Posted December 8, 2007 How do you register? - Sorry.. found out how. =P XSS http://www.eliteladders.com/devlopment/join.php Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410029 Share on other sites More sharing options...
Zepo. Posted December 9, 2007 Author Share Posted December 9, 2007 got it handled Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410032 Share on other sites More sharing options...
helraizer Posted December 9, 2007 Share Posted December 9, 2007 got it handled Apparently not. Now on every page you get an alert box saying '1', because I included script in my username. I could input javascript from my site, but then no one could again test your site.. So I won't. Also it says 'Error: Your IP address has already been used in this ladder', so I reset my internet connection and was able to make another account, so you probably shouldn't do it by IP. Sam Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410044 Share on other sites More sharing options...
Coreye Posted December 9, 2007 Share Posted December 9, 2007 Cross Site Scripting: You can add ">code when adding news. Cross Site Scripting: You can add ">code when creating groups. You can type in non integers when filling in the position for creating groups. The admin logs page has XSS flaws. You can submit ">code when adding bans. Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410047 Share on other sites More sharing options...
Zepo. Posted December 9, 2007 Author Share Posted December 9, 2007 Ok XSS completely fixed now, how else would i do that besides ip? Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410138 Share on other sites More sharing options...
Coreye Posted December 9, 2007 Share Posted December 9, 2007 Ok XSS completely fixed now, how else would i do that besides ip? The administration panel still has XSS flaws. Registration still has XSS flaws. Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410166 Share on other sites More sharing options...
Zepo. Posted December 9, 2007 Author Share Posted December 9, 2007 I know, admincp will stay the same for now, what on registration has that? Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410169 Share on other sites More sharing options...
Coreye Posted December 9, 2007 Share Posted December 9, 2007 I know, admincp will stay the same for now, what on registration has that? When you register you can submit ">code. Looks like you can create multiple accounts which are the same name. Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410174 Share on other sites More sharing options...
Zepo. Posted December 9, 2007 Author Share Posted December 9, 2007 How do i fix these xss's? Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410178 Share on other sites More sharing options...
helraizer Posted December 9, 2007 Share Posted December 9, 2007 How do i fix these xss's? XSS is means that if the user inputs HTML code into your registration field and submit it, it will input that HTML into your source code, thus running what they put in. So with php there is a function called htmlspecialchars, which means that if you use the code like $user = $_POST['username']; This uses anything the user types in the field, instead you should use: $user = htmlspecialchars($_POST['username']); This will turn <script> (which can be dangerous) into <script>, which is perfectly harmless. Though the latter doesn't look that nice, so when you pull down the data from the database you should use htmlspecialchars_decode. Hope that helps, Sam Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410275 Share on other sites More sharing options...
Zepo. Posted December 9, 2007 Author Share Posted December 9, 2007 I just realized it already does that......but not sure if it works.. Heres the code $team[name]=charecters($team[name]); Heres the function function charecters($text){ $text=wordwrap($text,100," ",1); $text=htmlspecialchars("$text"); $text=trim($text); return($text); } Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410342 Share on other sites More sharing options...
helraizer Posted December 9, 2007 Share Posted December 9, 2007 I just realized it already does that......but not sure if it works.. Heres the code $team[name]=charecters($team[name]); Heres the function function charecters($text){ $text=wordwrap($text,100," ",1); $text=htmlspecialchars("$text"); $text=trim($text); return($text); } take out the the "" in htmlspecialchars("$text"); so it'd be $text = htmlspecialchars($text); Sam Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410365 Share on other sites More sharing options...
Zepo. Posted December 9, 2007 Author Share Posted December 9, 2007 KK Lets see if it works now... Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410366 Share on other sites More sharing options...
helraizer Posted December 9, 2007 Share Posted December 9, 2007 KK Lets see if it works now... It appears to work now. My username was 'helraizer<script>alert(1);</script>' which meant that on everypage /you/ went on an alert box saying '1' would appear. Now that has changed, so it appears to work. Sam Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410382 Share on other sites More sharing options...
Zepo. Posted December 9, 2007 Author Share Posted December 9, 2007 Yea it works, thanks =]. Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410387 Share on other sites More sharing options...
Zepo. Posted December 10, 2007 Author Share Posted December 10, 2007 Further testing? Link to comment https://forums.phpfreaks.com/topic/80825-beta-testing-stagegaming-ladder/#findComment-410640 Share on other sites More sharing options...
Recommended Posts