Scan your PHP project for CVEs

github logo ・1 min read

I recently found this really nice tool for scanning a project's dependancies for security issues: https://security.sensiolabs.org/. You'll need to be using https://getcomposer.org/ to take advantage of it, but if you are then it's as easy as downloading the tool and running it against your composer.lock file like so:

$ php security-checker security:check /path/to/composer.lock

If there are any issues with any of the libraries you are using, you'll get a nice message telling you what the problem is and what CVE's if any impact those libraries. I've hooked this into CI for my team, so we can be sure we're not shipping code with known security holes.

twitter logo DISCUSS (2)
markdown guide
 

Didn't know about it until now. I will keep this in mind for our build server, too.

Thanks Gabriel for sharing!

 
Classic DEV Post from Feb 27

Yes, I still fall victim to Imposter Syndrome

Imposter syndrome rears its ugly head again.

Gabriel Guzman profile image

Customize DEV by logging in

  • Follow users
  • Follow tags
  • Dark mode
  • Font style (like sans serif)
  • Notifications
Get Started