$_SERVER['PHP_SELF'] issues

If you think something is wrong with a tutorial, or something could be done better, discuss it here.

Re: $_SERVER['PHP_SELF'] issues

Postby dominion » Thu Jul 22, 2010 8:32 pm

i can but you will need to give me a few hours i am not at a good computer right now ><
dominion
 
Posts: 13
Joined: Wed Jul 21, 2010 7:41 pm
Online: 5h 48m
Karma: 0

Re: Re: $_SERVER['PHP_SELF'] issues

Advertisment

Advertisment
 

Re: $_SERVER['PHP_SELF'] issues

Postby dominion » Sat Jul 24, 2010 10:22 pm

@ wide_load
sorry this took so long to answer here is an example of a simple img using a script to do something to your computer in this case take you ip however it would be easy to send something like a shutdown command or strip all escaped data imput to your database (would be send along with it when you click submit)

http://www.mrdjk.com/playground/attack.jpg
dominion
 
Posts: 13
Joined: Wed Jul 21, 2010 7:41 pm
Online: 5h 48m
Karma: 0

Re: $_SERVER['PHP_SELF'] issues

Postby bowersbros » Sat Jul 24, 2010 10:44 pm

Try it. try to restart my PC using that.
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2006
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 3h 12m 20s
Karma: 6

Re: $_SERVER['PHP_SELF'] issues

Postby Cags » Sun Jul 25, 2010 10:40 am

The point is, there's undeniable proof that it does allow you to include an iFrame. Within that iFrame it allows whoever doctored/sent out the link to use that iFrame to track people visiting your site with their link, in itself not that dangerous, but it does mean they are getting the IP address and user agent etc. of somebody that they know is visiting your site. In itself not entirely dangerous but still something you should be avoiding where possible. The iFrame can however run client-side code such as JS this will have access to the parent object thus allowing it to manipulate the DOM of your site and/or call your own JS functions. They could make the iFrame the size of the screen and clone your website, thus stealing your users information. Using URL shortening services and redirects they could make it pretty difficult for even somebody that has a vague idea of what they are doing to realise something strange is going on.
"I don't suffer from insanity, I enjoy every minute of it."
- Pete
CodeCanyon - Cheap, High Quality, Ready Made Scripts.
User avatar
Cags
Moderator
 
Posts: 1816
Joined: Fri May 22, 2009 9:35 am
Location: Purgatory
Online: 2d 12h 47m 44s
Karma: 7

Re: $_SERVER['PHP_SELF'] issues

Postby wide_load » Sun Jul 25, 2010 3:31 pm

dominion wrote:@ wide_load
sorry this took so long to answer here is an example of a simple img using a script to do something to your computer in this case take you ip however it would be easy to send something like a shutdown command or strip all escaped data imput to your database (would be send along with it when you click submit)

http://www.mrdjk.com/playground/attack.jpg


if you can show an example of that i will believe you, because as far as i can see all you can do is XSS, which will not run any scripts on the actual server.
Image
User avatar
wide_load
Top Contributor
 
Posts: 5375
Joined: Thu Aug 13, 2009 1:04 pm
Online: 12d 14h 21m 3s
Karma: 43

Re: $_SERVER['PHP_SELF'] issues

Postby dominion » Mon Jul 26, 2010 3:58 pm

Cags wrote:The point is, there's undeniable proof that it does allow you to include an iFrame. Within that iFrame it allows whoever doctored/sent out the link to use that iFrame to track people visiting your site with their link, in itself not that dangerous, but it does mean they are getting the IP address and user agent etc. of somebody that they know is visiting your site. In itself not entirely dangerous but still something you should be avoiding where possible. The iFrame can however run client-side code such as JS this will have access to the parent object thus allowing it to manipulate the DOM of your site and/or call your own JS functions. They could make the iFrame the size of the screen and clone your website, thus stealing your users information. Using URL shortening services and redirects they could make it pretty difficult for even somebody that has a vague idea of what they are doing to realise something strange is going on.


thanks for that at least someone is getting the fact its an issue

@wide_load don't believe me fine look it up i have posted that its an issue what more can i do ? i have shown you links to how it can be used and did try to explain if you wish to know more google is a very nice site to use

@bowersbros i can not do that within the law here so no sorry please use google
dominion
 
Posts: 13
Joined: Wed Jul 21, 2010 7:41 pm
Online: 5h 48m
Karma: 0

Re: $_SERVER['PHP_SELF'] issues

Postby wide_load » Mon Jul 26, 2010 5:08 pm

dominion wrote:thanks for that at least someone is getting the fact its an issue

@wide_load don't believe me fine look it up i have posted that its an issue what more can i do ? i have shown you links to how it can be used and did try to explain if you wish to know more google is a very nice site to use


i do believe that XSS is an issue, what i don't believe is that the things you say can be done. You cannot remove escaping from an input on the server without editing the php script.

Its not illegal to talk about these things and you have already shown an example of the ip logging thing, so until someone shows how the other things could be done,. i refuse to believe its possible.,

Also i did look it up and found nothing that supports your theory.
Image
User avatar
wide_load
Top Contributor
 
Posts: 5375
Joined: Thu Aug 13, 2009 1:04 pm
Online: 12d 14h 21m 3s
Karma: 43

Re: $_SERVER['PHP_SELF'] issues

Postby bowersbros » Mon Jul 26, 2010 7:58 pm

Also, The only thing that can shutdown is using shell_exec() in which case, that would shut down your server, and not the users PC, also, that would require access to the PHP files, which, your example doesnt give.

So again, i refuse to believe that what you stated can really be done.
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2006
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 3h 12m 20s
Karma: 6

Re: $_SERVER['PHP_SELF'] issues

Postby wide_load » Wed Jul 28, 2010 1:38 am

Okay i have looked into this a bit more.

There is a javascript exploit that allows you to execute commands on the users PC, ... in IE 5, it works i was able to shutdown my windows IE 5 virtual machine.

Even that is still javascript.

The suggestion that you could remove escaping from data and perform SQL injection seems to have no weight behind it.
Image
User avatar
wide_load
Top Contributor
 
Posts: 5375
Joined: Thu Aug 13, 2009 1:04 pm
Online: 12d 14h 21m 3s
Karma: 43

Previous

Return to Tutorial Feedback

Who's online?

Users browsing this forum: No registered users and 1 guest