Skip to content

Security: isousluer/laravel-deployment-scripts

Security

SECURITY.md

Security Policy

πŸ”’ Security Policy

We take the security of Laravel Deployment Scripts project seriously.

πŸ“ Supported Versions

Version Supported
1.0.x βœ…
< 1.0 ❌

πŸ› Reporting Security Vulnerabilities

If you discover a security vulnerability, please do not open a public issue.

Reporting Steps

  1. Send an email: ismail@usluer.net
  2. Provide details:
    • Description of the vulnerability
    • Affected version
    • Steps to reproduce
    • Potential impact
  3. Wait for response: We will respond within 48 hours

What to Include in Report

- Type of security vulnerability
- Affected file/code lines
- Steps to reproduce
- Potential impact assessment
- Suggested fix (if any)

πŸ›‘οΈ Security Best Practices

When Using Scripts

  1. βœ… Delete after use
   rm public/install.php
   rm public/update.php
  1. βœ… Check install.lock

    • Script runs only once
    • Don't manually delete the lock
  2. βœ… Add to .gitignore

   public/*.php
   public/install.lock
  1. βœ… Check file permissions
   chmod 644 public/*.php
  1. βœ… Use HTTPS

    • Don't run over HTTP
    • Use SSL certificate
  2. βœ… Be careful in production

    • Enable maintenance mode
    • Take backups
    • Test in staging environment

.env Security

# Protect sensitive information
APP_KEY=base64:...
DB_PASSWORD=...

# Debug off in production
APP_DEBUG=false
APP_ENV=production

🚨 Known Security Considerations

Script Access

  • ⚠️ Scripts run in public directory
  • βœ… Always delete after use
  • βœ… Configure web server

Example Nginx Configuration

# Block deployment scripts
location ~* \.(php)$ {
    if ($request_filename ~* (install|update|clear-cache|refresh-cache)\.php$) {
        return 403;
    }
}

Example Apache .htaccess

# Block deployment scripts
<FilesMatch "(install|update|clear-cache|refresh-cache)\.php$">
    Require all denied
</FilesMatch>

πŸ“ž Contact

πŸ™ Hall of Fame

Security researchers who responsibly disclosed vulnerabilities:

  • (None yet - be the first!)

πŸ“š Resources


Security is our priority! Thanks for responsible disclosure.

There aren’t any published security advisories