-
-
Notifications
You must be signed in to change notification settings - Fork 13
bom.vulnerabilities
model
#163
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
Changes from 1 commit
542767b
9d48635
1221c43
9e9ff63
30be7c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/*! | ||
This file is part of CycloneDX JavaScript Library. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
export enum VulnerabilityAffectsVersionStatus { | ||
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Affected = 'affected', | ||
Unaffected = 'unaffected', | ||
Unknown = 'unknown', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*! | ||
This file is part of CycloneDX JavaScript Library. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
export enum VulnerabilityAnalysisJustification { | ||
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
CodeNotPresent = 'code_not_present', | ||
CodeNotReachable = 'code_not_reachable', | ||
RequiresConfiguration = 'requires_configuration', | ||
RequiresDependency = 'requires_dependency', | ||
RequiresEnvironment = 'requires_environment', | ||
ProtectedByCompiler = 'protected_by_compiler', | ||
ProtectedAtRuntime = 'protected_at_runtime', | ||
ProtectedAtPerimeter = 'protected_at_perimeter', | ||
ProtectedByMitigatingControl = 'protected_by_mitigating_control', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*! | ||
This file is part of CycloneDX JavaScript Library. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
export enum VulnerabilityAnalysisResponse { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I switched to Please advise if you'd prefer a different name.
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
CanNotFix = 'can_not_fix', | ||
WillNotFix = 'will_not_fix', | ||
Update = 'update', | ||
Rollback = 'rollback', | ||
WorkaroundAvailable = 'workaround_available', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/*! | ||
This file is part of CycloneDX JavaScript Library. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
export enum VulnerabilityAnalysisState { | ||
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Resolved = 'resolved', | ||
ResolvedWithPedigree = 'resolved_with_pedigree', | ||
Exploitable = 'exploitable', | ||
InTriage = 'in_triage', | ||
FalsePositive = 'false_positive', | ||
NotAffacted = 'not_affected', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*! | ||
This file is part of CycloneDX JavaScript Library. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
export enum VulnerabilityRatingMethod { | ||
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
CVSSv2 = 'CVSSv2', | ||
CVSSv3 = 'CVSSv3', | ||
CVSSv31 = 'CVSSv31', | ||
OWASP = 'OWASP', | ||
Other = 'other', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*! | ||
This file is part of CycloneDX JavaScript Library. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
export enum VulnerabiltyRatingSeverity { | ||
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Critical = 'critical', | ||
High = 'high', | ||
Medium = 'medium', | ||
Low = 'low', | ||
Info = 'info', | ||
None = 'none', | ||
Unknown = 'unknown', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/*! | ||
This file is part of CycloneDX JavaScript Library. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
import { Comparable, SortableSet } from '../helpers/sortableSet' | ||
|
||
interface OptionalProperties { | ||
url?: URL | string | ||
name?: string | ||
} | ||
|
||
export class Source implements Comparable { | ||
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
url?: URL | string | ||
name?: string | ||
|
||
constructor (op: OptionalProperties = {}) { | ||
this.url = op.url | ||
this.name = op.name | ||
} | ||
|
||
compare (other: Source): number { | ||
return (this.name ?? '').localeCompare(other.name ?? '') | ||
thepwagner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
} | ||
|
||
export class SourceRepository extends SortableSet<Source> { | ||
} |
Uh oh!
There was an error while loading. Please reload this page.