-
Notifications
You must be signed in to change notification settings - Fork 547
feat: added Libsrtp checker (#1489) #1500
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
bcb22cc
feat: added Libsrtp checker (#1489)
XDRAGON2002 791f5ce
rerun github actions
XDRAGON2002 2f0771b
fix: updated version pattern
XDRAGON2002 ed81be5
rerun github actions
XDRAGON2002 51accf8
chore: updated year to 2022
XDRAGON2002 cd3af2e
fix: added libsrtp to allow.txt
XDRAGON2002 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ | |
"libnss", | ||
"libsndfile", | ||
"libsoup", | ||
"libsrtp", | ||
"libssh2", | ||
"libtiff", | ||
"libvirt", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (C) 2021 Intel Corporation | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
""" | ||
CVE checker for libsrtp | ||
|
||
https://www.cvedetails.com/vulnerability-list/vendor_id-16/product_id-26868/version_id-502930/Cisco-Libsrtp--.html | ||
|
||
""" | ||
|
||
from cve_bin_tool.checkers import Checker | ||
|
||
|
||
class LibsrtpChecker(Checker): | ||
CONTAINS_PATTERNS = [ | ||
r"An implementation of the Secure Real-time Transport Protocol \(SRTP\)", | ||
r"This package provides an implementation of the Secure Real-time", | ||
r"Transport Protocol \(SRTP\), the Universal Security Transform \(UST\), and", | ||
r"a supporting cryptographic kernel\.", | ||
] | ||
FILENAME_PATTERNS = [r"libsrtp"] | ||
VERSION_PATTERNS = [r"libsrtp[0-9]? ([0-9]+\.[0-9]+\.[0-9]+)"] | ||
VENDOR_PRODUCT = [("cisco", "libsrtp")] |
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
mapping_test_data = [ | ||
{"product": "libsrtp", "version": "1.5.4", "version_strings": ["libsrtp 1.5.4"]}, | ||
{"product": "libsrtp", "version": "2.3.0", "version_strings": ["libsrtp2 2.3.0"]}, | ||
] | ||
|
||
package_test_data = [ | ||
{ | ||
"url": "https://rpmfind.net/linux/centos/8-stream/AppStream/aarch64/os/Packages/", | ||
"package_name": "libsrtp-1.5.4-8.el8.aarch64.rpm", | ||
"product": "libsrtp", | ||
"version": "1.5.4", | ||
}, | ||
{ | ||
"url": "https://rpmfind.net/linux/centos-stream/9-stream/AppStream/aarch64/os/Packages/", | ||
"package_name": "libsrtp-2.3.0-7.el9.aarch64.rpm", | ||
"product": "libsrtp", | ||
"version": "2.3.0", | ||
}, | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New files should use 2022 instead of 2021.