Giter Club home page Giter Club logo

Comments (7)

carlin-q-scott avatar carlin-q-scott commented on September 15, 2024 1

I just created a repo with only the package-lock.json and it did detect the vulnerable packages. I don't love the info in the report though, as it doesn't even mention the vulnerable package or package version. It's just the ID of the vulnerability report. I can Google that to get the vulnerability details though. It would be nice if it linked to the vulnerability report at least.

This has revealed a shortcoming to me of the design philosophy of this tool. As new vulnerabilities are discovered for existing dependencies, those vulnerabilities won't be detected until I update a dependency for the impacted project.

from betterscan.

carlin-q-scott avatar carlin-q-scott commented on September 15, 2024 1

For the sake of efficiency, I'd imagine it would be best to only scan head for dependency issues, rather than each commit snapshot.

from betterscan.

carlin-q-scott avatar carlin-q-scott commented on September 15, 2024 1

This is working for new repositories, but not existing repositories that already have scan data for the dependency files. How easy would it be to write a python script to purge scan results for the dependency files?

from betterscan.

marcinguy avatar marcinguy commented on September 15, 2024

@carlin-q-scott Away from the keyboard. Theoretically you can modify the file package-lock.json or remove it from state db

Osv-scanner should be working, as well as others.

from betterscan.

marcinguy avatar marcinguy commented on September 15, 2024

@carlin-q-scott It can be adjusted to always scan dependencies dbs i.e package-lock.json and others. This could address it. What do you think?

More details can be also added to description field, everything can be extracted.

I will look into it as time permits, PRs are also welcome.

Will rethink to make it better in PRO version

from betterscan.

carlin-q-scott avatar carlin-q-scott commented on September 15, 2024

I like your idea of always scanning dependency files. That alleviates my main concern in this issue.

I can open separate issues calling out various fields I'd like to see in my BetterScan report; issue per scanner? And if I have time I'll look into implementing those improvements myself.

from betterscan.

marcinguy avatar marcinguy commented on September 15, 2024

Thank you @carlin-q-scott

I think you can either modify each lockfile (new line or something?), maybe 2 commits, one modification other revert? maybe easier to do or go through state database and remove entries for package files.

If you can contribute with a script, could be great (possibly also for other state db mangling)

from betterscan.

Related Issues (20)

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.