{"id":18350316,"url":"https://github.com/getspooky/laravel-mitnick","last_synced_at":"2025-05-08T04:25:19.842Z","repository":{"id":57017686,"uuid":"195400376","full_name":"getspooky/laravel-mitnick","owner":"getspooky","description":"🔐 laravel-security helps you secure your Laravel apps by setting various HTTP headers.","archived":false,"fork":false,"pushed_at":"2021-05-19T09:40:29.000Z","size":60,"stargazers_count":79,"open_issues_count":0,"forks_count":12,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-13T21:35:13.433Z","etag":null,"topics":["composer","headers","http-headers","laravel","laravel-apps","middleware","php","security"],"latest_commit_sha":null,"homepage":"https://getspooky.github.io/laravel-mitnick/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getspooky.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2019-07-05T11:46:13.000Z","updated_at":"2024-02-02T22:40:53.000Z","dependencies_parsed_at":"2022-08-22T11:30:58.967Z","dependency_job_id":null,"html_url":"https://github.com/getspooky/laravel-mitnick","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getspooky%2Flaravel-mitnick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getspooky%2Flaravel-mitnick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getspooky%2Flaravel-mitnick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getspooky%2Flaravel-mitnick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getspooky","download_url":"https://codeload.github.com/getspooky/laravel-mitnick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231474812,"owners_count":18382160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","headers","http-headers","laravel","laravel-apps","middleware","php","security"],"created_at":"2024-11-05T21:26:05.252Z","updated_at":"2024-12-27T11:13:56.408Z","avatar_url":"https://github.com/getspooky.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 Laravel-Mitnick\n\n![Packagist Downloads](https://img.shields.io/packagist/dt/mitnick/laravel-security?style=for-the-badge)\n![GitHub repo size](https://img.shields.io/github/repo-size/getspooky/Laravel-Mitnick?style=for-the-badge)\n![GitHub](https://img.shields.io/github/license/getspooky/Laravel-Mitnick?style=for-the-badge)\n\nLaravel-Mitnick helps you secure your Laravel apps by setting various HTTP headers. It's not a silver bullet, but it can help!\n\n## Quick start\n\nFirst, You can install the package via composer: \n```sh\ncomposer require mitnick/laravel-security \n```\n\nIf you would like to assign middleware to specific routes, you should first assign the middleware a key in your `app/Http/Kernel.php` file. By default, the `$routeMiddleware` property of this class contains entries for the middleware included with Laravel\n\n```php\n// Within App\\Http\\Kernel Class...\n\nprotected $routeMiddleware = [\n    'auth' =\u003e \\App\\Http\\Middleware\\Authenticate::class,\n    'auth.basic' =\u003e \\Illuminate\\Auth\\Middleware\\AuthenticateWithBasicAuth::class,\n    'bindings' =\u003e \\Illuminate\\Routing\\Middleware\\SubstituteBindings::class,\n    'cache.headers' =\u003e \\Illuminate\\Http\\Middleware\\SetCacheHeaders::class,\n    'can' =\u003e \\Illuminate\\Auth\\Middleware\\Authorize::class,\n    'guest' =\u003e \\App\\Http\\Middleware\\RedirectIfAuthenticated::class,\n    'signed' =\u003e \\Illuminate\\Routing\\Middleware\\ValidateSignature::class,\n    'throttle' =\u003e \\Illuminate\\Routing\\Middleware\\ThrottleRequests::class,\n    'verified' =\u003e \\Illuminate\\Auth\\Middleware\\EnsureEmailIsVerified::class,\n    'no-cache' =\u003e \\Mitnick\\Laravel\\Security\\cache::class\n];\n```\n\n## Documentation\n\nFor installation instructions, in-depth usage and deployment details, please take a look at the official [documentation](https://getspooky.github.io/Laravel-Mitnick/).\n\n## Requirements\n\nLaravel-Mitnick  has a few requirements you should be aware of before installing :\n\n* Composer\n* Laravel Framework 5.4+\n\n## Solved : Security vulnerability\n\nLaravel-Mitnick is a collection of 9 smaller middleware functions that set HTTP response headers.\n\n| Vulnerability | Middleware Class  |   Included\n| ------- | --- | --- |\n| Cache Control Attack | Mitnick\\Laravel\\Security\\cache::class |  ✔\n| Cross-Origin Resource Sharing (CORS) |  Mitnick\\Laravel\\Security\\cors::class |✔\n| X-Permitted-Cross-Domain-Policies | Mitnick\\Laravel\\Security\\crossDomain::class | ✔\n| DNS Prefetch Control | Mitnick\\Laravel\\Security\\dns::class |✔\n| Click Jacking Attack | Mitnick\\Laravel\\Security\\frameGuard::class |✔\n| Strict-Transport-Security | Mitnick\\Laravel\\Security\\hsts::class |✔\n| Mime Sniffing Attack | Mitnick\\Laravel\\Security\\noSniff::class |✔\n| X-Powered-By Attack  | Mitnick\\Laravel\\Security\\xPoweredBy::class | ✔\n| XSS Attack | Mitnick\\Laravel\\Security\\xss::class |✔\n\n\n## Contributing \n\nWhether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the `Laravel-Mitnick` community! 💪💜  See CONTRIBUTING.md for more information on what we're looking for and how to get started.\n\n## License\n\nThe Laravel-Mitnick package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetspooky%2Flaravel-mitnick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetspooky%2Flaravel-mitnick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetspooky%2Flaravel-mitnick/lists"}