Code Monkey home page Code Monkey logo

harry-s-list-friends's Introduction

#README for Harry's List!


Full Stack application (Work in progress)

harry-s-list-friends's People

Contributors

ejdweck avatar zharr avatar

Stargazers

Michael Mattheakis avatar Andrew Mahler avatar  avatar Yash Bidasaria avatar  avatar

Watchers

James Cloos avatar  avatar Yash Bidasaria avatar  avatar

harry-s-list-friends's Issues

Multiple SQL injections

Hello,

I noticed that some of the SQL queries are not sanitized properly, which opens a possibility of SQL Injection attacks (https://www.owasp.org/index.php/SQL_Injection).

As a Proof of Concept consider: http://localhost:search/q='+or+1=1+--+

Vulnerable lines in views.py are: 128, 133, 137, 150, 178, 207.

To fix those, i would suggest using prepared statements. For example, lines 132-133 can be rewritten to:
query = "SELECT DISTINCT Artist.Image_Src, Artist.Name, Artist.Location FROM Artist WHERE Artist.Name LIKE '%?%' LIMIT 30"
cursor.execute(query, (search_input))

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.