Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6698185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:32:53+00:00 2026-05-26T06:32:53+00:00

First, I’m not trying to hack or do anything illegal. Thought I let you

  • 0

First, I’m not trying to hack or do anything illegal. Thought I let you guys know. I have a client that want’s me to do some modifications on his system, when I was looking at it I notice that NOTHING was escaped. I’m not joking, nothing is being escaped. I explained to him that it’s insecure to have a system like that. He then proceeds to tell me that he’s had his system like this for few years and nothing has happened. I need to show him that his system is not safe, but I really don’t know to do perform an sql injection. Here’s a few queries that use $_GET and are not escaped.

SELECT *,DATE_FORMAT(joined,'%M %d, %Y') as \"Joined\" FROM `members` WHERE `name` LIKE '".$ltr."%' ORDER BY points DESC LIMIT $page,50

Here’s another one:

SELECT * FROM groups WHERE id=$thisladder[grid]

The only thing that I see that “might” clean the $_GET is this function:

if (!ini_get('register_globals')) {
   $superglobals = array($_SERVER, $_ENV,
       $_FILES, $_COOKIE, $_POST, $_GET);
   if (isset($_SESSION)) {
       array_unshift($superglobals, $_SESSION);
   }
   foreach ($superglobals as $superglobal) {
       extract($superglobal, EXTR_SKIP);
   }
}

It’s possible that the function above may be sanitizing the variables. And yes, the system also uses register globals, which is also bad.

I also made a backup, just in case.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:32:53+00:00Added an answer on May 26, 2026 at 6:32 am

    Can’t say it better than http://xkcd.com/327/.

    But then again, as Marc B says, forget SQL injection, register_globals is much, much worse. Never thought I’d actually see it emulated, just in case it’s off.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First and foremost, I do not know RegEx but am trying to piece something
First I want to thank you guys here, because your posts have gotten me
First off, I'm not all that familiar with cookies but I know how they
First, I have a list of QWidget s that I won't know the length
First of all, I know how to build a Java application. But I have
First let me say that I really feel directionless on this question. I am
First Im a noob in LINQ ! Then, the thing is that I have
First let me preface this question by saying that I'm fairly new to Javascript.
First of all I have seen that there are many questions about unrecognized selector
first of all, I'm not good with jQuery and coding. I'm trying to achieve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.