Comments (6)
Thanks that's good to know! Unfortunately, the dependency https://github.com/kotakanbe/go-cve-dictionary/ we use to fetch and incorporate the NVD data seems to be unaware of Reference
tags
such as Third Party Advisory
.
Particularly, looking at: https://github.com/kotakanbe/go-cve-dictionary/blob/master/models/models.go#L257
// Reference is Child model of Jvn/Nvd.
// It holds reference information about the CVE.
type Reference struct {
gorm.Model `json:"-" xml:"-"`
NvdJSONID uint `json:"-" xml:"-"`
JvnID uint `json:"-" xml:"-"`
Source string
Link string `sql:"type:text"`
}
You can see that the column for tags
is missing. I think this is processed in https://github.com/kotakanbe/go-cve-dictionary/blob/master/fetcher/nvd/json/nvd.go#L253
tag := strings.Join(ref.TAGS, " ")
but not stored anywhere.
One approach would be to provide a pull request to modify the data models and to store the tags
data seperated by ',' as is the case in the NVD provided JSON format (https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-recent.json.zip), too.
from vulncode-db.
@evonide Thanks for the research.
For the PR solution to work, #41 should be get done with.
A quick fix would be to modify vulncode-db
's go-cve-dictionary
fork . With some minor refactors propagating our changes to latest upstream will be easy(and then file a PR there) .
If this works for you please assign me this ticket (and expect a PR soon :) ) .
from vulncode-db.
Sounds good I'll get back once I've looked into resolving #41.
from vulncode-db.
Hey Shivam, as promised I've updated go-cve-dictionary
to the latest state in #41.
Assigning to you as suggested. Please let me know if I can help with this.
from vulncode-db.
Unrelated to this, but I was wondering why are their migrations for the cve
database at 2 places ? There's migrations at alembic and also go-cve-dictionary
creates the same schema. This creates issues when go-cve-dictionary
is ran before frontend
. The alembic migrations then attempt to create the same schema which was created before by go-cve-dictionary
.
from vulncode-db.
Thanks and fully agreed Shivam! I'll look into how to best resolve this soon.
from vulncode-db.
Related Issues (20)
- Lots of warnings with SQLAlchemy 1.4.1 and sqlakeyset >= 1.0
- AttributeError after installation HOT 6
- Error when using cwe_data function of docker-admin.sh HOT 1
- Add some way to fetch processed CVEs
- How to get the data? HOT 3
- Changing a commit link during a proposal review does not update the commit hash
- Mark required fields in forms HOT 3
- Show a guide on how to create proposals
- Open for discussion: Allow to set titles for entries
- Allow to change CWE type
- Product names have duplicates or very similar names HOT 2
- Deduplicate the edit flow
- Handle parser errors
- Make user profiles visible to others
- Add GitHub to our supported OAuth login providers
- Firefox does not support CSSStyleSheet breaking the product view in propose changes
- Collect requirements for code annotation feature
- Add guard against proposing changes for non-GitHub repository URL entries
- Proposals don't support empty commit links HOT 2
- Comments misaligned in detailed editor view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulncode-db.