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

  • SEARCH
  • Home
  • 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 7700489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:43:15+00:00 2026-05-31T22:43:15+00:00

Is it possible to sneak an insert statement (or anything else that changes the

  • 0

Is it possible to sneak an “insert” statement (or anything else that changes the database) into a MySQL “select” statement?

I ask because I’m concerned I’ve found an injection vulnerability, but it’s safeguarded from obvious mayhem like '; drop database; -- by virtue of only being able to run a single statement at a time, no matter how many statements the query has been corrupted to contain. But if the back end is executing something like select bar from foo where param = '$improperly_escaped_input', is there something I can input that will compromise my database?

The vulnerability needs to be corrected, regardless. But if I can show an example of how it can be exploited to screw with the data, fixing it goes way up in the priority queue.

  • 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-31T22:43:16+00:00Added an answer on May 31, 2026 at 10:43 pm

    Modification of data is only one aspect of a Sql Injection vulnerability. Even with just read permissions, an attacker can elevate their privileges, or use a Blind Sql Injection attack to scrape every last bit of data out of your database.

    I can’t think of a way off the top of my head that data would be modified inside a select statement… but, are you sure that you’re only able to run a single command at a time?

    Regardless, the other attack vectors should be enough of a threat to raise the priority on the issue.

    EDIT: Data modification is allowed in MySql sub-queries:

    MySQL permits a subquery to refer to a stored function that has
    data-modifying side effects such as inserting rows into a table. For
    example, if f() inserts rows, the following query can modify data:

    SELECT ... WHERE x IN (SELECT f() ...);

    This behavior is nonstandard
    (not permitted by the SQL standard). In MySQL, it can produce
    indeterminate results because f() might be executed a different number
    of times for different executions of a given query depending on how
    the optimizer chooses to handle it.

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

Sidebar

Related Questions

Possible Duplicate: Yield In VB.NET In C#, when writing a function that returns an
I plan to sneak in some Python/Django to my workdays and a possible social
Possible Duplicate: Database Deployment issues I followed the steps in this video: http://www.asp.net/iis/videos/developing-and-deploying-in-a-shared-hosting I
Possible Duplicate: Best way to stop SQL Injection in PHP I am creating a
Possible Duplicates: Why is lock(this) {...} bad? In C# it is common to use
Possible Duplicate: Finding the Variable Name passed to a Function in C# In C#,
Possible Duplicate: Where do the Python unit tests go? Are unit tests kept in
Possible Duplicates: What is the best approach for a Java developer to learn C++
Possible Duplicate: Hibernate and no PK Anyone knows how to do hibernate mapping for
Possible Duplicate: How does an underscore in front of a variable in a cocoa

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.