Giter Site home page Giter Site logo

Client-side SQL select about commotion HOT 4 CLOSED

ppegusii avatar ppegusii commented on July 18, 2024
Client-side SQL select

from commotion.

Comments (4)

billyshears314 avatar billyshears314 commented on July 18, 2024

I believe we can use one of the node.js modules from https://nodejsmodules.org/tags/sanitize to solve that problem, but I haven't looked extensively into this yet.

from commotion.

ppegusii avatar ppegusii commented on July 18, 2024

Those look like they sanitize user input, not SQL select statements. I wanted to do something like http://hiddentao.github.io/squel/ but sending the object to the server, sanitizing and converting it to a SQL statement there. For example, on client side we want "SELECT id,name,description FROM exercises where difficulty LIKE beginner LIMIT 20", so we create an object like {col:['id','name','description'],from:['exercises'],where:'difficulty LIKE beginner',limit:20}, send it to the server then we sanitize the object server side and reconstruct the query string intended by the client. Is there something that does that? Would that be difficult to build our selves?

from commotion.

billyshears314 avatar billyshears314 commented on July 18, 2024

I don't quite understand why you would want to sanitize something other than user input. I don't see an obvious vulnerability if not from user input. I think we'll have to discuss this in person.

from commotion.

ppegusii avatar ppegusii commented on July 18, 2024

Not happening.

from commotion.

Related Issues (20)

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.