Coder Social home page Coder Social logo

Comments (8)

phillf avatar phillf commented on July 24, 2024

@justinfarmer14 Do we have details of where and when this is possible?

from opencad-php.

isoadam avatar isoadam commented on July 24, 2024

There are many vulnerable queries littered throughout the source

As an example:
https://github.com/StormlightTech/openCAD-php/blob/development-stable/actions/api.php#L1015-L1023

from opencad-php.

phillf avatar phillf commented on July 24, 2024

Would it be worth writing a SQL library to handle queries now or going through and patching all of these and saving that library for later?

from opencad-php.

isoadam avatar isoadam commented on July 24, 2024

I would personally suggest overhauling database interaction. Maybe consider an ORM?

I think reviewing interaction with the database will be important for securing the performance and scalability of the project.

My current understanding is that you authenticate with the database on nearly every request - this is not the greatest idea.
Consider complex application logic which may require multiple database transactions - authenticating with the database multiple times will slow the application times of the application, increasing response times - not the greatest idea for realtime applications and data.

I have not worked with PHP for a couple of years now - but it will be important to ensure that only one connection/authentication is made to the database per request.

If you wish to continue using the mysqli driver, consider exclusively using prepared statements, this should greatly reduce the chance of SQL injection vulnerable processes being present in the application.

from opencad-php.

phillf avatar phillf commented on July 24, 2024

(Leaving this for reference)
http://propelorm.org/

from opencad-php.

isoadam avatar isoadam commented on July 24, 2024

Looks good!

from opencad-php.

ItsAGeekThing avatar ItsAGeekThing commented on July 24, 2024

I'm going to do a full security audit in the next few days

from opencad-php.

ItsAGeekThing avatar ItsAGeekThing commented on July 24, 2024

We should consider having the integration of an ORM as a separate report.

from opencad-php.

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.