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 7829337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:43:45+00:00 2026-06-02T10:43:45+00:00

I was reading about sql injection and i understand how it works if there

  • 0

I was reading about sql injection and i understand how it works if there is a form where the user can enter his username and login. What i dont get is how websites without a login page can be vulnerable to sql injection.

http://thecybersaviours.com/how-to-find-out-if-a-website-is-vulnerable-to-sql-injection

It says just append a ‘ or ”=’ to test it. I dont understand how this helps to determine whether an error exists. Where is the query being constructed at all.

  • 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-06-02T10:43:46+00:00Added an answer on June 2, 2026 at 10:43 am

    SQL injection is the attempt to issue SQL commands to a database through a website interface, to gain other information. Namely, this information is stored database information such as usernames and passwords.

    First rule of securing any script or page that attaches to a database instance is Do not trust user input.

    Your example is attempting to end a misquoted string in an SQL statement. To understand this, you first need to understand SQL statements. In your example of adding a ' to a paramater, your ‘injection’ is hoping for the following type of statement:

    SELECT username,password FROM users WHERE username=’$username’

    By appending a ' to that statement, you could then add additional SQL paramaters or queries.: ' OR username --

    SELECT username,password FROM users WHERE username=” OR username — ‘$username

    That is an injection (one type of; Query Reshaping). The user input becomes an injected statement into the pre-written SQL statement.

    Generally there are three types of SQL injection methods:

    • Query Reshaping or redirection (above)
    • Error message based (No such user/password)
    • Blind Injections

    Read up on SQL Injection, How to test for vulnerabilities, understanding and overcoming SQL injection, and this question (and related ones) on StackOverflow about avoiding injections.

    Edit:

    As far as TESTING your site for SQL injection, understand it gets A LOT more complex than just ‘append a symbol’. If your site is critical, and you (or your company) can afford it, hire a professional pen tester. Failing that, this great exaxmple/proof can show you some common techniques one might use to perform an injection test. There is also SQLMap which can automate some tests for SQL Injection and database take over scenarios.

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

Sidebar

Related Questions

I'm reading a book about SQL. In that book there's the term Ad Hoc
I've been reading about SQL injection attacks and how to avoid them, although I
I've been reading and asked a question about SQL Injection safe queries and everyone
I been reading a bit about SQL injection and I want to be sure
I am reading about NATURAL shorthand form for SQL joins and I see some
When reading about SQL Injection and XSS i was wondering if you guys have
I'm reading a book about SQL. In that book, I saw strange query below:
I'm reading about Red Gate SQL Backup, and I liked the concept of creating
I was just reading about Linq to SQL being discontinued. For a while I
Reading about both Linq to SQL and Entity Framework I have developed the impression

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.