Giter Site home page Giter Site logo

fde-portfolio's Introduction

Build Status Total Downloads Latest Stable Version License

Security

Assignment 3

Snooping and session hijacking

Snooping and session hijacking is impossible to completely prevent, but for maximal security this application will create a new session id at each login and will delete the old session id at each logout. So if the session was successfully hijacked, once the user logs out, the access to the hijacked session ends. This is done in the AuthenticatedSessionController.php that can be found in app/Http/Controllers/auth/AuthenticatedSessionController.php.

There the store and destroy methods handle the session ids at every log in / out.

IDOR attacks

Insecure direct object references (IDOR) is a way to obtain access to private data with user supplied inputs. In Laravel the hosting root is the /public directory, which contains an index.php file and some other files that have to be publicly accessible, like JS and CSS files for example. All requests are going through Laravels index.php file to the router web.php pointing to Controllers or returning the blades directly. This technique prevent IDOR attacks, which I want to demonstrate with the follwoing example:

This application has two files, from which one is stored inside the /public directory and another one in the root directory. When we now try to access the file in the /public folder by adding /IDOR_in_public.txt to our URL, we will see the text rendered in our browser. However, when we now try to reach the /IDOR.txt file in the root directory, Laravel will simply respond with a 404 error since the route is not defined in the router.

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

fde-portfolio's People

Contributors

lifeadmin-cmd avatar

Watchers

 avatar

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.