Граф коммитов

1201 Коммитов

Автор SHA1 Сообщение Дата
Tatiana Bradley 42c71d8ab3 data/reports: update GO-2023-1737.yaml
Add fixed version.

Updates golang/vulndb#1737
Fixes golang/vulndb#1810

Change-Id: I0e4f5224c2dfe2bac98a389c25ac526cfd06d36f
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/499895
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-06-01 15:21:27 +00:00
Tatiana Bradley 3ffc445bc4 cmd/vulnreport: factor out git functions
Change-Id: I5ae3d19ceb6902649fc8eb28b8de1b66df32d5f0
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/499463
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-31 21:31:09 +00:00
Tatiana Bradley f762043b08 cmd/vulnreport,internal/report: cleanup filename functions
Now that the ID is in the YAML report, we don't need to call GoID() as
often, and we don't need to pass the Go ID to YAMLFilename or CVEFilename.

Change-Id: I80c161a3be47a54d97837e4d68e789f166c8907b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/498282
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-31 21:30:51 +00:00
Tatiana Bradley f1409b0461 data: add lint check for ID and add ID to all YAML reports
Adds the ID field to all YAML reports and adds a lint check to enforce
that all reports have the correct value for the field. Also adds a
step to "vulnreport fix" to fix the ID if needed.

Change-Id: I51f4654e127528e1dbbfcb9c59da3658ad52098b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/498281
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-31 21:30:23 +00:00
Julie Qiu 143d2ac990 go.mod: update gopkg.in/yaml.v3
Upgrade to non-vulerable version.

Also update tests because the behavior of yaml has slightly changed with
how whitespace is handled.

Change-Id: Ie6088046da9cd79ee6ad6e5aefb03fdc65cd707b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/499655
Auto-Submit: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2023-05-31 18:10:53 +00:00
Tatiana Bradley 6a4ae31b26 internal/report: add ID field to YAML report struct
This allows us to directly read the ID from a report struct, instead
of needing to pass around the ID or the filename.

Change-Id: I3b233f02d65ee383994fc2cce6d92c8284aebea4
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/498280
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-31 17:07:32 +00:00
Tatiana Bradley 77da7b6b22 internal/report: separate checking filenames from linting
Move the filename check out of Lint and into its own function. Now
a report can be linted independently of its filename.

We still check that filenames are correct in "vulnreport lint" and
other commands, and in the big TestLintReports test.

Change-Id: Ic7a5bb50de51aa72cb41179ef6a9303c7b5ecff3
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/498279
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-31 17:06:51 +00:00
Julie Qiu 538ebf67ad .github/workflows: change action version
Change-Id: Ic664c074b5291748ed4ef2b10ccc74fa698499da
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/499462
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
2023-05-31 14:56:30 +00:00
Maceo Thompson 2489576509 data/excluded: batch add GO-2023-1785, GO-2023-1789, GO-2023-1787
Fixes golang/vulndb#1785
Fixes golang/vulndb#1789
Fixes golang/vulndb#1787

Change-Id: I851405992d806eff32378f9cd08e2dea0c9bd9e3
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/498277
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Maceo Thompson <maceothompson@google.com>
2023-05-26 17:25:23 +00:00
Tatiana Bradley 5c064e0c02 all: (cleanup) remove unnecessary words from function names
No-op refactor to remove redundant words like "get" from function names.

Change-Id: I899556dbbe8caa790593bee8d952d1b3f557387b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/497499
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-25 15:11:04 +00:00
Jonathan Amsterdam 5da7e3174d data/reports: add GO-2023-1772.yaml
Aliases: CVE-2023-2253, GHSA-hqxw-f8mx-cpmw

Fixes golang/vulndb#1772

Change-Id: I5a0eb5a240c7b94468a6284d95b662f5e5b5b543
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494937
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-05-24 18:13:11 +00:00
Tatiana Bradley eca7ee86dd data: add some missing GHSAs
Change-Id: I24b94c796e9f2b8b934465ec9ac377ffeb7cc1c2
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/497636
Reviewed-by: Maceo Thompson <maceothompson@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-24 17:06:25 +00:00
Jonathan Amsterdam c68acc5628 data/reports: add GO-2023-1765.yaml
Aliases: CVE-2023-1732, GHSA-2q89-485c-9j2x

There were two edits in the fix CL that are not reflected in the
report: the ones in packages kem/kyber/templates and
kem/sike/templates. These contain Go files with a "//+ build ignore"
tag. They are actually templates that are probably used
to generated the other .go files.

I tried to add a comment to that effect to the yaml file,
but vulnreport removed it.

Fixes golang/vulndb#1765

Change-Id: Ib48fae330230687178ea4b61e6202150e6f89d1b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494940
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-24 15:32:51 +00:00
Tatiana Bradley 37153dbef6 internal/worker: use function Aliases instead of x/vuln client
To remove the dependency on the now unsupported x/vuln client, clone
the vulndb repo and call Aliases to find all aliases. This is actually
an improvement, as the worker will now take into account excluded aliases
when determining if something is a duplicate.

With this change, we have now completely removed the dependency of this
repo on x/vuln.

Fixes golang/go#60116

Change-Id: I12a837745d4eb2cc62cdb44522a52e2d016b4b6c
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/497039
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-23 21:04:01 +00:00
Tatiana Bradley 6242441d68 internal/report: add function Aliases
Function Aliases returns a list of all aliases (CVEs and GHSAs) in the
given vulndb repo. This will be used by the worker in place of the old
x/vuln client.

This change also updates the GetAllExisting function to not use a strict
YAML decoder, which sometimes causes the worker to spuriously fail
if a new YAML field is added and the new worker hasn't yet been
deployed.

Change-Id: I5e1872752ce4954ee89df8c0a0e46b2c9ab1ea4a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/497038
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-23 21:03:50 +00:00
Tatiana Bradley 24c92d8206 internal/proxy: add unit tests for proxy package
Adds additional unit tests for the proxy package.

For golang/go#60275

Change-Id: I4706cb2c0e3b54db27241eb19177bd48d2683fba
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/497036
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-23 21:03:37 +00:00
Tatiana Bradley 3816721d94 internal/report: move Fix to its own file and add a test
Change-Id: Ie8fbd6838468dd2234dd3aa33ff7bdaba27cf7f1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/497035
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-23 21:03:26 +00:00
Tatiana Bradley db19ee9ad5 internal/report: reuse OSV validation for version ranges
Instead of validating YAML version ranges directly, convert them
to OSV ranges and validate those to re-use the code.

Also add a lint check to ensure the vulnerable_at version is inside the
vulnerable range, and fix a report that had this error.

Change-Id: I315fd3e62902c115ea56b3111e3d77983d5a74fb
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495985
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-23 21:03:16 +00:00
Tatiana Bradley e68e5e46e8 internal/report: improve Lint testing infra
Make Lint easier to test by creating test reports that can
be changed via a function, rather than needing to copy-and-paste the
test reports for each test case.

Change-Id: I13f7c3c699de4efb90b3ba621c00bb772ff48321
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495983
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-23 21:03:09 +00:00
Tatiana Bradley 2f29ed1a53 internal/osvutils: simplify AffectsSemver
Simplify the logic of AffectsSemver by requiring that all ranges
are valid (in particular, sorted), before operating on them.

AffectsSemver now returns an error if the ranges or version is invalid.
This allows the caller to distinguish between an invalid input and
a truly unaffected version.

Change-Id: Id7271c3acaca0980c9c0c57b3c6ef961e18a45de
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495982
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-23 21:03:01 +00:00
Tatiana Bradley 8b79f23881 cmd/vulnreport: refactor exportedFunctions
Refactor the exportedFunctions function to take in a single package
and module, which was how it was being used. (The caller,
"vulnreport fix", loops over all modules and packages and calls
exportedFunctions for each package).

Change-Id: I04f178efa9fc5cb0d9a06a49ea0059cbc032913d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495986
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-05-23 21:02:41 +00:00
Tatiana Bradley 10d773f52c internal/{report,version}: simplify handling of semver versions
- Remove the type Version and use bare strings to avoid type casting.
- Move functions for dealing with versions to the version package

Change-Id: I0b811f70c7c21e64ee59bfdc57d149fc9dab93ff
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495981
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-23 21:01:25 +00:00
Tatiana Bradley bc8850eb3e internal/{osvutils,version}: move AffectsSemver and rename semver package
Moves AffectsSemver function to the internal/osvutils package, and
renames the internal semver package to "version" to avoid collision
with the x/mod/semver package.

Change-Id: I49e8875c18ec92578f5ab8300a54d1082b4f6c6d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495980
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-22 21:21:26 +00:00
Tatiana Bradley 0cbf4ffdb4 internal/{database,osv}: add more robust validation for osv entries
Adds functions to validate OSV entries, and calls these functions in
both unit tests and pre-deploy checks.

Change-Id: Id5ddbb6c1a5c81b9176491d5cf1a88fbae928606
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495498
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-22 18:05:20 +00:00
Tatiana Bradley 55f14e2dc5 all: small cleanup
- Improve github issue parse logic
- Remove some unused code
- Fix some error messages

Change-Id: I0c0e2c1e260da78e825df489efca15ea1dc7025b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496158
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-22 17:33:01 +00:00
Tatiana Bradley 70d2e67a02 internal/{proxy,report}: add package proxy to hold proxy-lookup logic
Change-Id: I34d3a112b4a253c192afdeccf9d71c091dfc3b40
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496157
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-22 17:32:37 +00:00
Julie Qiu 7bdda0dc3d .github/workflows: add govulncheck-action
Change-Id: Ie0f1b4d9473eb551b0ac3e16b4004b5f9ba8a3d8
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496975
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-22 17:01:54 +00:00
Zvonimir Pavlinovic f6a0cd4207 cmd/vulnreport: replace dependency on vulncheck with its copy
vulncheck is not exported any more so we cut ties with it here. This CL
replaces calls to vulncheck with a slightly modified copy of parts of
vulncheck.

The copy contains just enough logic to compute derived symbols, i.e.,
entries of call graph leading to vulnerable symbols. Hence, the copy
manifests as an internal package of vulnreport called vulnentries.
Other logic of vulncheck is not copied.

The copied code of vulncheck is unlikely to change in the future and has
not change pretty much from its outset in vuln. This will hopefully
minimize the maintenance burden of vulnreport going forward.

vulnreport now does not depend on golang.org/x/vuln.

Change-Id: Ie5e7bab639ad69144a9be64f1899c722c13db37c
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496475
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-19 19:26:34 +00:00
Tatiana Bradley 0910814825 internal/report, all: allow multiple credits in YAML reports
Allow multiple credits in YAML reports to move closer to format of
OSV and CVEs.

Change all the YAML reports to use this new field, and update any
OSVs/CVEs that now have multiple credits.

Change-Id: I6452cb51614b44c86ec6fa47a7bce68976be8f9e
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496163
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-18 20:38:56 +00:00
Tatiana Bradley 9c4f01a490 internal/report: remove unused function for converting to cve v4
Remove function ToCVE, which is made obsolete by ToCVE5.

Change-Id: If95e2371350bb91b6b34a8733f9a590a6a4b0508
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496162
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-18 20:38:49 +00:00
Tatiana Bradley 3c40521d11 internal/reports: remove unused field DoNotExport from YAML
DoNotExport is no longer used for anything, so remove it.

Change-Id: I11793d774a20e96e4ec84e2bdc238c28136630f4
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496161
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-18 20:38:42 +00:00
Tatiana Bradley 7e5a11cc64 internal/report: reuse osv.Reference for YAML reference
Change-Id: Ieb25161fa1084ab8eeccf40779ca2bfd40c04d00
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/496160
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-18 20:38:36 +00:00
Tatiana Bradley 15b14901b9 all: fix various staticcheck issues
Fix some unchecked errors, unused variables, misuse of formatting
directives etc.

Change-Id: Ie2a96de976f9ddbf9f7820b6941d4620ef388619
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495895
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-05-17 17:06:02 +00:00
Tatiana Bradley 8c25e44800 internal/database: cleanup OSV test data
Adds schema version to all test OSV entries and ensures that test package
names are prefixed by test module names. This is to prepare for adding
stricter validation for OSV entries.

Change-Id: I06b37a8dd3ff753ad48e8cec8002a455d5676f35
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495497
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-05-17 16:12:18 +00:00
Julie Qiu 55adb3a5ba data/reports: add GO-2023-1505.yaml
Aliases: CVE-2022-47747, GHSA-hj4g-4w36-x8hp

Fixes golang/vulndb#1505

Change-Id: Ied31516398ebce8d537668946cf5fadc6d1b0721
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495375
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-17 15:57:34 +00:00
Tatiana Bradley 79e8525f4f data/reports: sort versions in GO-2023-1515.yaml
Aliases: CVE-2022-43756, GHSA-8fcj-gf77-47mg

Updates golang/vulndb#1515

Change-Id: I946852e4db1f608ad4fbffb92a405e8b8ab0b3be
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495496
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-05-16 21:17:26 +00:00
Tatiana Bradley 7165d97527 data/reports: add a reference to GO-2022-0322.yaml
Aliases: CVE-2022-21698, GHSA-cg3q-j54f-5p7p

For golang/vulndb#322

Change-Id: Ia5559f868543160abdb63423c0de7323fcb0669d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495495
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-16 21:17:24 +00:00
Julie Qiu 0f5634c450 data/excluded: batch add GO-2023-1775, GO-2023-1778, GO-2023-1774, GO-2023-1771, GO-2023-1769, GO-2023-1768, GO-2023-1779
Fixes golang/vulndb#1775
Fixes golang/vulndb#1778
Fixes golang/vulndb#1774
Fixes golang/vulndb#1771
Fixes golang/vulndb#1769
Fixes golang/vulndb#1768
Fixes golang/vulndb#1779

Change-Id: Ic7444b456ede60031b9314b54254c236c4fd4137
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/495335
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2023-05-16 19:22:12 +00:00
Jonathan Amsterdam 4ab4099618 doc/triage.md: elaborate on how to edit a generated report file
Change-Id: Ib23c3d48e15b39a9e5d023ce0da7621fae09c9ec
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494938
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-05-15 16:40:34 +00:00
Jonathan Amsterdam 3da4cefb6f internal/report: fix max line length handling
The intent is that a single-word line greater than 100 characters
is allowed. The code was checking the entire content, not
just the current line.

Also display the line in the error.

Change-Id: I8ad83d25c905e0a7ff13612cfe829df540897fb8
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494936
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-15 16:37:38 +00:00
Tatiana Bradley 9656646ff5 all_test.go: don't skip bash tests
https://go.dev/cl/492741 fixed the issue, so unskip the tests.

Fixes golang/go#60077

Change-Id: Ic48215941c7c2aa157a8c13f13f9e56ed1fa8211
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494215
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
2023-05-12 14:14:14 +00:00
Zvonimir Pavlinovic 564a77a6b1 data/reports: add GO-2023-1737.yaml
Aliases: CVE-2023-29401

Updates golang/vulndb#1737

Change-Id: Iaf02c0a5966e96a2515b0c31b8739bc4a80131ce
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494315
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
2023-05-11 18:59:56 +00:00
Tatiana Bradley 00566bd833 data/reports: add summaries for x/ repo vulns
For golang/go#56443

Change-Id: I2b007a983da699bdac46408c0cd5ad6506e5ddb2
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/493918
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Tim King <taking@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-11 16:33:42 +00:00
Tatiana Bradley 69f5b83308 data/reports: add -0 suffix to stdlib report versions
For std and cmd reports with an introduced at 1.x.0 version, add the
suffix "-0" so that the vuln will be considered introduced before any
rc versions.

Change-Id: I4c69a7895b453f759924cefaa283570ee42b4858
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494218
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-11 15:31:00 +00:00
Zvonimir Pavlinovic b4a652df9f all: update to the latest version of tools
This resolves some ssa/generics issues in computation of exported
symbols. These issues were discovered when creating a report for
GO-2023-1737.yaml.

Change-Id: Id75aa0be44844829374c034cc8c8ec1f0beb65e8
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494316
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-11 15:24:28 +00:00
Jonathan Amsterdam 2afe1452c0 data/excluded: batch add GO-2023-1763, GO-2023-1764, GO-2023-1761, GO-2023-1758, GO-2023-1754
Fixes golang/vulndb#1763
Fixes golang/vulndb#1764
Fixes golang/vulndb#1761
Fixes golang/vulndb#1758
Fixes golang/vulndb#1754

Change-Id: I45bb18641f813b03d79036af82fa4ffd2a3d8c4f
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/493895
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-05-10 20:14:07 +00:00
Tatiana Bradley 7c92a880cc internal/report, data/reports: require summary field in YAML
Adds a lint check to require a non-empty summary field in YAML reports,
and backfills summary field for all old reports with a TODO. (This TODO
is OK because the summary field is not yet published to OSV.)

For golang/go#56443

Change-Id: I368d48ceca35ed74a0461550d5386ae7ff85be1a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/493595
Reviewed-by: Tim King <taking@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-10 15:19:00 +00:00
Tatiana Bradley 2e4c4f6ae4 all_test: skip bash checks for now
Bash checks are failing due to a network issue; skip this check
for now pending fix.

Change-Id: I755bd6665cb244cd6d6fbab24596fad7c02e6963
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/493916
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-05-09 15:37:40 +00:00
Tatiana Bradley 480f580aa0 data/reports: add GO-2023-1753.yaml
Aliases: CVE-2023-29400

Updates golang/vulndb#1753

Change-Id: Ic0af9f93be9dc925e25407a7a7d7f016ffd17745
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/492397
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-05-05 21:10:24 +00:00
Tatiana Bradley 04643752dd data/reports: add GO-2023-1752.yaml
Aliases: CVE-2023-24540

Updates golang/vulndb#1752

Change-Id: Id8ced15224c5ed265d8d409cb42066f81f303f76
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/492396
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
2023-05-05 21:10:22 +00:00