snuffleupagus | Key Features • Download • Examples • Documentation •
kandi X-RAY | snuffleupagus Summary
kandi X-RAY | snuffleupagus Summary
Key Features • Download • Examples • Documentation • License • Thanks. Snuffleupagus is a PHP 7+ module designed to drastically raise the cost of attacks against websites, by killing entire bug classes. It also provides a powerful virtual-patching system, allowing administrator to fix specific vulnerabilities and audit suspicious behaviours without having to touch the PHP code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of snuffleupagus
snuffleupagus Key Features
snuffleupagus Examples and Code Snippets
Community Discussions
Trending Discussions on snuffleupagus
QUESTION
I'm starting to develop something (self-hosted - each user installs it on their server - probably a shared server) that allows users to upload other's code (plugins).
One problem that I'm worried about is plugins changing Core files.
The flow of the application is something like this:
...ANSWER
Answered 2017-Dec-28 at 19:29One problem that I'm worried about is plugins changing Core files.
Ship your Core files as a signed PHP Archive.
I'm trying to limit plugins access to either the files or php functions. It would be great if plugins were only allowed to use Core classes/methods.
That's a very challenging problem to solve, and is far beyond the scope of a StackOverflow answer. At a minimum, you need to make sure that the server bootstrapping hits your framework (which works out well if you're using a signed .phar rather than a mutable .php file).
However, beyond that, you cannot stop plugins from calling PHP functions in the standard library. An alternative approach may be to build a Template engine (e.g. like Twig) and only let plugins be written in your own domain-specific language that cannot call arbitrary PHP functions, only the ones you provide.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install snuffleupagus
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page