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

Start at describing structure and meaning of the vuln json schema #34

Closed
wants to merge 1 commit into from
Closed

Start at describing structure and meaning of the vuln json schema #34

wants to merge 1 commit into from

Conversation

sam-github
Copy link
Contributor

No description provided.

@sam-github
Copy link
Contributor Author

@nstarke or @evilpacket can you look at the PR content and comment on the open questions about the meaning of the data fields?

@evilpacket
Copy link
Contributor

evilpacket commented Aug 1, 2017

@sam-github Nick is no longer on the node security / lift security team and thus may not have time anymore to work on any of this? I'll let him confirm that etc.

I went through and gave some quick comments.

|`vulnerable_versions`|semver-spec|vulnerable versions?|"<99.999.9999"|
XXX What is exact syntax of semver-spec? Is it https://www.npmjs.com/package/semver#ranges ?

|`patched_versions`|semver-spec|versions after fixed?|"<0.0.0"|
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is no available fix can this be null or undefined or something like that? (Hmmm... perhaps an empty string?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be <0.0.0, both a valid semver, and an empty set

XXX do we need this, or is it just a mongo internal field?

|`title`|String|Short readable description|"Directory Traversal"|
|`author`|String|Finder of vuln|"Liang Gong"|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think credit is more appropriate. it also better suited when there are more than one researchers to credit.

XXX see http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3743 for example

|`vulnerable_versions`|semver-spec|vulnerable versions?|"<99.999.9999"|
XXX What is exact syntax of semver-spec? Is it https://www.npmjs.com/package/semver#ranges ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|`vulnerable_versions`|semver-spec|vulnerable versions?|"<99.999.9999"|
XXX What is exact syntax of semver-spec? Is it https://www.npmjs.com/package/semver#ranges ?

|`patched_versions`|semver-spec|versions after fixed?|"<0.0.0"|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be <0.0.0, both a valid semver, and an empty set

XXX What is exact syntax of semver-spec? Is it https://www.npmjs.com/package/semver#ranges ?

|`patched_versions`|semver-spec|versions after fixed?|"<0.0.0"|
XXX so vulnerable versions are `vulnerable_versions` MINUS `patched_versions`? And any other versions are assumed not vulnerable?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe having the vulnerable_versions only is enough. (no need for patched_versions)

|`references`|String, multiline markdown bullet list|URLs of interest?|"* [PoC by Liang Gong](https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/badjs-sourcemap-server)"|
XXX what is structure? do they have to be markdown URLs?

|`cvss_vector`|CVSS vector|CVSS vector|"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be clear whether v2 or v3. v3 is preferred, and indeed appears in the example vector.

@sam-github sam-github closed this Oct 12, 2017
@sam-github sam-github deleted the vuln-schema branch October 12, 2017 21:11
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.

4 participants