GithubHelp home page GithubHelp logo

avonnadozie / liteframe Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 9.0 42.61 MB

A lightweight PHP framework built for small and medium scale applications.

License: MIT License

PHP 42.91% CSS 18.47% JavaScript 2.28% HTML 36.34%
lightweight-php-framework microframework mvc-architecture

liteframe's People

Contributors

avonnadozie avatar collinsugwu avatar jhony112 avatar ugwuanyiandy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

liteframe's Issues

Security issue: "Preferably 777"

The documentation here recommends that a permissions mode of 0777 is used.

I was curious about what this project is and what it does, but I'm going to stay well away from any documentation that actually recommends 0777 as a serious permissions setting. This allows anyone on a system to read and write to a directory.

In addition, on files, it allows execution privileges, which is an additional security risk. For example, if an application accepts user input and saves it to a file with 0777 privileges, a malicious actor may be able to execute arbitrary code on the server!

Here are some good resources to learn about Linux permissions:

Strong permission settings are an essential safeguard against attack.

(blocked:mixed-content) for assets when hosting the website being an https proxy server/loadbalancer

Problem

When we host a LiteFrame website https://domain.com being an https proxy server, assets (eg, http://domain.com/assets/css/bootstrap.min.css) are generated using http which lead browsers (Chrome, Opera, Firefox) to issue a (blocked:mixed-content) Status on assets preventing them to load.

Web server involve: Apache and Nginx,

Exceptions happen when you try to open a no secure website, That time assets load too because there are not protected.

Solution

#1 Do not use hard link for asset: Do not include the hostname and protocol, give the asset path from the server root,
#2 For the case where you will like to place assets on cdn give provide an env config for the cdn base hostname like CDN_ROOT

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.