Coder Social home page Coder Social logo

SQL Injection about pfsense-cp-auth-onestep HOT 4 CLOSED

deajan avatar deajan commented on July 18, 2024
SQL Injection

from pfsense-cp-auth-onestep.

Comments (4)

deajan avatar deajan commented on July 18, 2024

You're having a point.
I'll have to check whether pfSense 2.2.x also has mysqli support before considering this move.
While I cannot fix this in the next days, feel free to add a mysql_real_escape_string as a PR.

from pfsense-cp-auth-onestep.

keisentraut avatar keisentraut commented on July 18, 2024

I've created a pull request which adds mysql_real_escape_string and checked that it is applied to all user input (even the MAC address), too. However mysql_real_escape_string is not sufficient in all edge cases, but for now should make exploitation much harder. Feel free to merge, but beware that I didn't test it yet.

from pfsense-cp-auth-onestep.

deajan avatar deajan commented on July 18, 2024

Thanks for your work.
As soon as I can I'll rewrite this using proper statements.
Meanwhile, I merged your PR as it seems legit to me.

from pfsense-cp-auth-onestep.

deajan avatar deajan commented on July 18, 2024

Finally got time to replace all the old mysql stuff with prepared statements. Done

from pfsense-cp-auth-onestep.

Related Issues (4)

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.