Comments (8)
@justinfarmer14 Do we have details of where and when this is possible?
from opencad-php.
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.
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.
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.
(Leaving this for reference)
http://propelorm.org/
from opencad-php.
Looks good!
from opencad-php.
I'm going to do a full security audit in the next few days
from opencad-php.
We should consider having the integration of an ORM as a separate report.
from opencad-php.
Related Issues (20)
- [PROPOSAL] Users being removed from suspension have randomly generated password created HOT 3
- Database description switched in departments
- Live map warning needs to be localized.
- [PROPOSAL] Drop Support for PHP 7.3 at end of January HOT 3
- Styling of readme.md HOT 1
- Redo Ticketing System for current version HOT 1
- HTML Elements HOT 2
- Force PHP 8.0 Requirement
- NCICName Table
- Login Error 1.0 HOT 8
- Single sign-on. HOT 4
- .htaccess Milestone 1.0 HOT 1
- Error when registering a new user First Responder HOT 16
- The status of the officer is not displayed HOT 1
- This is a test report! Please ignore
- Internal 500 error. OC 1.0.0 HOT 1
- tes
- Features ,suggestions, bugs whatever you like to call these. HOT 2
- Discord Verification By Phone Number Not Required HOT 1
- Since when is CAD not to do with Computer-Aided Design ? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencad-php.