Jump to content

Find out if register_globals is on


strai

Recommended Posts

Does anyone have a clue if it is possible for an 'outsider' to figure out whether register_globals is set to on in a particular web application?

The 'outsider' does not have access to the php code and does not have access to the phpinfo() output.

 

 

Link to comment
Share on other sites

I am testing a lot of vulnerability scanners and I have created a web application where I deliberately left 6 prevalent vulnerabilities like XSS, SQL-injection etc.

One of those vulnerabilities is the fact that register_globals is on.

In my admin.php page, the server checks whether $admin == true. If so, the visitor has access to the admin.php page. However, when register_globals is on, one can easily set the $admin variable to true.

 

My question is: Is it por a vulnerability scanner possible to detect whether register_globals is on?

Link to comment
Share on other sites

Because register_globals affect data values in variables, the short answer is no, a general purpose vulnerability scanner cannot tell if register_globals are on.

 

It would take specific knowledge about how the data is being used in the code in order to be able to write a vulnerability scanner that could trigger an indication if register_globals were on.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.