GithubHelp home page GithubHelp logo

comp-security-project's Introduction

comp-security-project

For the first week of the project, Trevor spent time using Google to understand what an SQL injection is, and how to perform one. An SQL injection is a web-based attack wherein the attacker might gain access to a system by using SQL syntax in a form text entry field.

In a Login form, the backend program might utilize code that takes the user's entry and stores it in a variable called userIDEntry. Then, the JavaScript code would look like this code from https://www.w3schools.com/sql/sql_injection.asp:

txtUserId = getRequestString("UserId");
txtSQL = "SELECT * FROM Users WHERE UserId = " + txtUserId;

To view information about the system, the attacker might provide the entry:

105 OR 1 = 1

The resultant SQL entry would then be

SELECT * FROM Users WHERE UserId = 105 OR 1 = 1;

This would return the Users table for the attacker to see. If the Users table also contains passwords, then the attacker has attained a complete list of usernames and passwords for the site. Similar code can also be used to gain unauthorized access to a system.

comp-security-project's People

Contributors

flaque avatar tmgreenside avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.