Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(exploit): collect 305 new exploits that assigned CVE-ID #41

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

kotakanbe
Copy link
Collaborator

@kotakanbe kotakanbe commented Jan 22, 2021

Added support for unexpected formatting of NVD XML.

<Reference>
            <URL>https://www.exploit-db.com/exploits/49410</URL>
            <Description>MISC:https://www.exploit-db.com/exploits/49410</Description>
</Reference>

Vuls can now collect 305 new exploits that assigned CVE-ID.

Before

sqlite> select count(cve_id) from exploits where cve_id != "";
12236
sqlite> select count(distinct(cve_id)) from exploits where cve_id != "";
11544
sqlite> .mode csv
sqlite> .output /tmp/exploit-before.csv
sqlite> select cve_id from exploits where cve_id != "" order by cve_id;
sqlite> .output /tmp/exploit-before-uniq.csv
sqlite> select distinct(cve_id) from exploits where cve_id != "" order by cve_id;

After

sqlite>  select count(cve_id) from exploits where cve_id != "";
12551
sqlite> select count(distinct(cve_id)) from exploits where cve_id != "";
11849
sqlite> .mode csv
sqlite> .output /tmp/exploit-after.csv
sqlite> select cve_id from exploits where cve_id != "" order by cve_id;
sqlite> .output /tmp/exploit-after-uniq.csv
sqlite> select distinct(cve_id) from exploits where cve_id != "" order by cve_id;

Diff

 ubuntu@dev  │tmp  git diff exploit-before-uniq.csv exploit-after-uniq.csv | grep +CVE | wc -l
305

@kotakanbe kotakanbe merged commit a35f631 into master Jan 22, 2021
@kotakanbe kotakanbe changed the title fix(exploit): MISC:URL in the Description fix(exploit): collect 305 new exploits that assigned CVE-ID Jan 22, 2021
@kotakanbe kotakanbe deleted the fix-misc branch September 20, 2021 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant