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

1835 Коммитов

Автор SHA1 Сообщение Дата
Tatiana Bradley f74ecab81b data/reports: add 5 unreviewed reports
- data/reports/GO-2024-2612.yaml
  - data/reports/GO-2024-2684.yaml
  - data/reports/GO-2024-2699.yaml
  - data/reports/GO-2024-2776.yaml
  - data/reports/GO-2024-2769.yaml

Fixes golang/vulndb#2612
Fixes golang/vulndb#2684
Fixes golang/vulndb#2699
Fixes golang/vulndb#2776
Fixes golang/vulndb#2769

Change-Id: I233aeca23f767773c1238eeec2450617801ae69b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/591199
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Commit-Queue: Tatiana Bradley <tatianabradley@google.com>
2024-06-10 16:38:54 +00:00
Tatiana Bradley afddd60f5a cmd/vulnreport: remove packages and bad URLs for unreviewed reports
When creating unreviewed reports, automatically remove references
that do not exist.

Also remove package-level data, as it can cause false-negatives
if it is not correct.

(For reviewed reports, we preserve these pieces of info as a human
will review them and manually determine if they are useful).

Change-Id: I2ff6bde62320d2f56f9d5a67ef438f4cafbaf6e5
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/591200
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-10 16:38:45 +00:00
Tatiana Bradley 32ab29ebce internal/cve5: remove malformed packages in CVE5-to-report
If a package name doesn't have any slashes, it is probably not useful,
so remove it when creating a report.

Change-Id: I5ad653f0870853ad992b4162a115b94ce703c2e1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/591198
Reviewed-by: Damien Neil <dneil@google.com>
Commit-Queue: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-10 16:38:29 +00:00
Tatiana Bradley bb0f94bba9 internal/{cve4,cve5}: keep track of lints that apply to generated test reports
In test cases, remember the lints that would apply to each generated
report. This makes it more clear which reports have errors that would
need to be fixed manually in order to submit, and gives us a starting
point from which to automatically address these lints.

Change-Id: Ifdf3f60edd7606d87b507c6b6ff147c19ad894a2
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/591197
Commit-Queue: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-10 16:38:20 +00:00
Tatiana Bradley 9fdd0f7322 internal/cve5: add additional test cases for CVE5-to-report
Add some more test cases for real CVEs that reveal issues
with our report creation process (e.g., preserving package names
that are malformed, dropping reference metadata, and being unable
to recognize a vuln that doesn't actually affect Go.)

This gives us a starting point from which to fix these issues.

(Note that this CL also updates all the test cases to the latest
available CVE content and updates the proxy responses, so there are
some updates to test cases unrelated to this change.)

Change-Id: Id4d8c87021b9077f042c0029ec7f1655f871df46
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/591196
Commit-Queue: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-10 16:38:13 +00:00
Tatiana Bradley eec3f2aed8 cmd/vulnreport: update and separate module prioritization code
Modify the prioritization algorithm so that it only considers the number
of reviewed vs. likely-binary reports, instead of comparing the number
of excluded vs. non-excluded reports. This means that the number of unreviewed
reports does not (currently) affect the prioritization result.

In addition, separate the code used to prioritize modules (for vulnreport triage)
into its own package so it can be tested in isolation.

Also add a basic command line tool "priority" that can be used to find the
priority result for a module directly.

Change-Id: Ic7ebe76d8f5091f56bc3eb65a5064391136b2064
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/591195
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-10 16:37:53 +00:00
Tatiana Bradley f159766da6 cmd/vulnreport: add command vulnreport regen
Command vulnreport regen regenerates a report based on
the latest version of the source.

Intended for UNREVIEWED reports.

Use the following command to regenerate all unreviewed
reports:
$ vulnreport regen data/reports/*.yaml

Change-Id: I3f956fde473b8375bd523049118d8f6817aad9ae
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590856
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-10 16:19:29 +00:00
Tatiana Bradley e7cc6860cc internal/pkgsite: fix worker bug by relaxing rate limit
The vulndb worker was timing out due to a restrictive rate limit
for requests to pkgsite. Relax this rate limit as a quick fix.

Change-Id: I1938c0e4182c476ac8d9472283534ace5681706a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/591435
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-07 22:49:26 +00:00
Tatiana Bradley 4a8a19ffff internal/worker: fix an issue where worker won't restart
Fix a case where the worker refuses to restart if it thinks
(incorrectly) that a previous update has not yet finished. (Because
the previous update errored).

Do this by populating the EndedAt field of the UpdateRecord in
cveUpdater.update on error as well as success.

Change-Id: Ibc98f23b51da21397612479d539dfefe906acb8c
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/589996
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
2024-06-06 19:03:25 +00:00
Tatiana Bradley f538f3837a data/excluded: add 20 excluded reports
- data/excluded/GO-2024-2884.yaml
  - data/excluded/GO-2024-2841.yaml
  - data/excluded/GO-2024-2840.yaml
  - data/excluded/GO-2024-2839.yaml
  - data/excluded/GO-2024-2838.yaml
  - data/excluded/GO-2024-2837.yaml
  - data/excluded/GO-2024-2835.yaml
  - data/excluded/GO-2024-2810.yaml
  - data/excluded/GO-2024-2805.yaml
  - data/excluded/GO-2024-2802.yaml
  - data/excluded/GO-2024-2767.yaml
  - data/excluded/GO-2024-2758.yaml
  - data/excluded/GO-2024-2742.yaml
  - data/excluded/GO-2024-2735.yaml
  - data/excluded/GO-2024-2733.yaml
  - data/excluded/GO-2024-2713.yaml
  - data/excluded/GO-2024-2711.yaml
  - data/excluded/GO-2024-2710.yaml
  - data/excluded/GO-2024-2573.yaml
  - data/excluded/GO-2024-2570.yaml

Fixes golang/vulndb#2884
Fixes golang/vulndb#2841
Fixes golang/vulndb#2840
Fixes golang/vulndb#2839
Fixes golang/vulndb#2838
Fixes golang/vulndb#2837
Fixes golang/vulndb#2835
Fixes golang/vulndb#2810
Fixes golang/vulndb#2805
Fixes golang/vulndb#2802
Fixes golang/vulndb#2767
Fixes golang/vulndb#2758
Fixes golang/vulndb#2742
Fixes golang/vulndb#2735
Fixes golang/vulndb#2733
Fixes golang/vulndb#2713
Fixes golang/vulndb#2711
Fixes golang/vulndb#2710
Fixes golang/vulndb#2573
Fixes golang/vulndb#2570

Change-Id: Ib24b58abdf8d6793d3a0c066bed8f165d5f1eb28
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590855
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-05 20:01:13 +00:00
Tatiana Bradley c016f634dd cmd/vulnreport: fix two issues with triage
1. Don't remove existing labels when triaging
2. Skip issues already marked excluded when triaging

Change-Id: I5e3fd3a614f56407d75c920202937b4534fe15c9
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590776
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
2024-06-05 17:18:38 +00:00
Tatiana Bradley b195240651 data/reports: update GO-2024-2732
fix spelling

  - data/reports/GO-2024-2732.yaml

Updates golang/vulndb#2732

Change-Id: I04e15bf95cdf87b5cc22923a02ea3a2d8d503444
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590775
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
2024-06-05 16:17:31 +00:00
Tatiana Bradley 4e76d8778e data/excluded: add 3 excluded reports
- data/excluded/GO-2024-2685.yaml
  - data/excluded/GO-2024-2786.yaml
  - data/excluded/GO-2024-2787.yaml

Fixes golang/vulndb#2685
Fixes golang/vulndb#2786
Fixes golang/vulndb#2787

Change-Id: Iafa5b71e7328997d4e98abd72014e3a21c34e5b1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590282
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-05 15:11:15 +00:00
Tatiana Bradley 7ecfe86a75 data/reports: add 6 unreviewed reports
- data/reports/GO-2024-2755.yaml
  - data/reports/GO-2024-2759.yaml
  - data/reports/GO-2024-2770.yaml
  - data/reports/GO-2024-2775.yaml
  - data/reports/GO-2024-2777.yaml
  - data/reports/GO-2024-2783.yaml

Fixes golang/vulndb#2755
Fixes golang/vulndb#2759
Fixes golang/vulndb#2770
Fixes golang/vulndb#2775
Fixes golang/vulndb#2777
Fixes golang/vulndb#2783

Change-Id: I388fd39e45ecb629bb8c72818b9082fdc6af4d65
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590281
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-05 15:11:04 +00:00
Tatiana Bradley 8ed6db9e99 data/reports: add 44 unreviewed reports
- data/reports/GO-2024-2576.yaml
  - data/reports/GO-2024-2695.yaml
  - data/reports/GO-2024-2737.yaml
  - data/reports/GO-2024-2795.yaml
  - data/reports/GO-2024-2799.yaml
  - data/reports/GO-2024-2715.yaml
  - data/reports/GO-2024-2798.yaml
  - data/reports/GO-2024-2793.yaml
  - data/reports/GO-2024-2705.yaml
  - data/reports/GO-2024-2808.yaml
  - data/reports/GO-2024-2875.yaml
  - data/reports/GO-2024-2635.yaml
  - data/reports/GO-2024-2707.yaml
  - data/reports/GO-2024-2797.yaml
  - data/reports/GO-2024-2726.yaml
  - data/reports/GO-2024-2650.yaml
  - data/reports/GO-2024-2698.yaml
  - data/reports/GO-2024-2760.yaml
  - data/reports/GO-2024-2788.yaml
  - data/reports/GO-2024-2629.yaml
  - data/reports/GO-2024-2771.yaml
  - data/reports/GO-2024-2794.yaml
  - data/reports/GO-2024-2637.yaml
  - data/reports/GO-2024-2734.yaml
  - data/reports/GO-2024-2764.yaml
  - data/reports/GO-2024-2762.yaml
  - data/reports/GO-2024-2566.yaml
  - data/reports/GO-2024-2789.yaml
  - data/reports/GO-2024-2664.yaml
  - data/reports/GO-2024-2688.yaml
  - data/reports/GO-2024-2697.yaml
  - data/reports/GO-2024-2719.yaml
  - data/reports/GO-2024-2718.yaml
  - data/reports/GO-2024-2468.yaml
  - data/reports/GO-2024-2717.yaml
  - data/reports/GO-2024-2761.yaml
  - data/reports/GO-2024-2796.yaml
  - data/reports/GO-2024-2706.yaml
  - data/reports/GO-2024-2722.yaml
  - data/reports/GO-2024-2665.yaml
  - data/reports/GO-2024-2750.yaml
  - data/reports/GO-2024-2809.yaml
  - data/reports/GO-2024-2696.yaml
  - data/reports/GO-2024-2732.yaml

Fixes golang/vulndb#2576
Fixes golang/vulndb#2695
Fixes golang/vulndb#2737
Fixes golang/vulndb#2795
Fixes golang/vulndb#2799
Fixes golang/vulndb#2715
Fixes golang/vulndb#2798
Fixes golang/vulndb#2793
Fixes golang/vulndb#2705
Fixes golang/vulndb#2808
Fixes golang/vulndb#2875
Fixes golang/vulndb#2635
Fixes golang/vulndb#2707
Fixes golang/vulndb#2797
Fixes golang/vulndb#2726
Fixes golang/vulndb#2650
Fixes golang/vulndb#2698
Fixes golang/vulndb#2760
Fixes golang/vulndb#2788
Fixes golang/vulndb#2629
Fixes golang/vulndb#2771
Fixes golang/vulndb#2794
Fixes golang/vulndb#2637
Fixes golang/vulndb#2734
Fixes golang/vulndb#2764
Fixes golang/vulndb#2762
Fixes golang/vulndb#2566
Fixes golang/vulndb#2789
Fixes golang/vulndb#2664
Fixes golang/vulndb#2688
Fixes golang/vulndb#2697
Fixes golang/vulndb#2719
Fixes golang/vulndb#2718
Fixes golang/vulndb#2468
Fixes golang/vulndb#2717
Fixes golang/vulndb#2761
Fixes golang/vulndb#2796
Fixes golang/vulndb#2706
Fixes golang/vulndb#2722
Fixes golang/vulndb#2665
Fixes golang/vulndb#2750
Fixes golang/vulndb#2809
Fixes golang/vulndb#2696
Fixes golang/vulndb#2732

Change-Id: I8f664cb56ccc1fbce1437179178f78fa3825a1c5
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590278
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-05 15:10:52 +00:00
Tatiana Bradley 69991d5f63 data/reports: add 26 unreviewed reports
- data/reports/GO-2024-2804.yaml
  - data/reports/GO-2024-2811.yaml
  - data/reports/GO-2024-2816.yaml
  - data/reports/GO-2024-2817.yaml
  - data/reports/GO-2024-2843.yaml
  - data/reports/GO-2024-2844.yaml
  - data/reports/GO-2024-2847.yaml
  - data/reports/GO-2024-2848.yaml
  - data/reports/GO-2024-2849.yaml
  - data/reports/GO-2024-2850.yaml
  - data/reports/GO-2024-2851.yaml
  - data/reports/GO-2024-2852.yaml
  - data/reports/GO-2024-2854.yaml
  - data/reports/GO-2024-2855.yaml
  - data/reports/GO-2024-2856.yaml
  - data/reports/GO-2024-2857.yaml
  - data/reports/GO-2024-2865.yaml
  - data/reports/GO-2024-2866.yaml
  - data/reports/GO-2024-2867.yaml
  - data/reports/GO-2024-2871.yaml
  - data/reports/GO-2024-2872.yaml
  - data/reports/GO-2024-2877.yaml
  - data/reports/GO-2024-2880.yaml
  - data/reports/GO-2024-2882.yaml
  - data/reports/GO-2024-2885.yaml
  - data/reports/GO-2024-2886.yaml

Fixes golang/vulndb#2804
Fixes golang/vulndb#2811
Fixes golang/vulndb#2816
Fixes golang/vulndb#2817
Fixes golang/vulndb#2843
Fixes golang/vulndb#2844
Fixes golang/vulndb#2847
Fixes golang/vulndb#2848
Fixes golang/vulndb#2849
Fixes golang/vulndb#2850
Fixes golang/vulndb#2851
Fixes golang/vulndb#2852
Fixes golang/vulndb#2854
Fixes golang/vulndb#2855
Fixes golang/vulndb#2856
Fixes golang/vulndb#2857
Fixes golang/vulndb#2865
Fixes golang/vulndb#2866
Fixes golang/vulndb#2867
Fixes golang/vulndb#2871
Fixes golang/vulndb#2872
Fixes golang/vulndb#2877
Fixes golang/vulndb#2880
Fixes golang/vulndb#2882
Fixes golang/vulndb#2885
Fixes golang/vulndb#2886

Change-Id: Ia746865818b99c2d6bd37b287461693a53b892d8
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590277
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-05 15:10:42 +00:00
Tatiana Bradley 922b5d4313 all_test: allow duplicate summaries for unreviewed reports
Modify the corpus-wide report lint check to allow unreviewed reports
to have the same summary as other (reviewed or unreviwed) reports.

Reviewed reports must still have unique summaries (but may share a summary
with one or more unreviewed reports).

Change-Id: I8ab4fc259e019c0fb529ed0ef332cc9cfe634483
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590279
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-05 15:09:57 +00:00
Tatiana Bradley a75c727173 internal/report: add lint check for source
Add a lint check to ensure that original reports created
by the Go team are always marked REVIEWED.

Change-Id: I5d72998be1597e42ec5ae5e05d4a5d9a4324cb40
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590276
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-05 15:09:39 +00:00
Tatiana Bradley a460ba8ff6 cmd/vulnreport: fix excluded folder bug
Fix bug in which excluded reports would be published to the wrong
folder. This was accidentally introduced in a recent refactor
and no reports were actually published to the wrong folder (this would
have been caught before submit if it had occurred).

Change-Id: Icc9eb99b2ceb185310e99eaa39e45072e0ae6c80
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590280
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-05 15:09:27 +00:00
Tatiana Bradley 2b1dca0b1c data/reports: add 2 stdlib reports
- data/reports/GO-2024-2887.yaml
  - data/reports/GO-2024-2888.yaml

Updates golang/vulndb#2887
Updates golang/vulndb#2888

Change-Id: I86227776f185481f018c28d798b2cde4ce02faa1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590655
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
2024-06-04 22:48:55 +00:00
Gopher Robot 5e320d4472 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I46082ab056d3f219438727b4ca5f92e018f4904c
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590458
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
2024-06-04 20:20:44 +00:00
Tatiana Bradley a79df1ecd0 internal/worker: improve tests for cve update
Add tests to check contents of the update record and for error
cases. This is to prep for a change to this function's behavior.

Change-Id: I9380f661725aa4a50db0691906d3d6a5a925f8d1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/589995
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-04 18:05:44 +00:00
Tatiana Bradley 27393c79fa data/reports: update GO-2024-2727
- data/reports/GO-2024-2727.yaml

Updates golang/vulndb#2727

Change-Id: I3e97285dd3613c9016fa85e3303125d151052408
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590275
Reviewed-by: Maceo Thompson <maceothompson@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
2024-06-04 16:32:12 +00:00
Tatiana Bradley a78aa7f94f data/reports: update GO-2024-2727
Fix misspelling which is blocking deploy.

  - data/reports/GO-2024-2727.yaml

Updates golang/vulndb#2727

Change-Id: Idb651a01f3109b6ca6262a01f3e2616234d068d7
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590255
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
2024-06-04 16:09:47 +00:00
Tatiana Bradley 96f0f48a7e data/reports: add 51 unreviewed reports
Add 51 completely auto-generated reports.

  - data/reports/GO-2024-2647.yaml
  - data/reports/GO-2024-2728.yaml
  - data/reports/GO-2024-2568.yaml
  - data/reports/GO-2024-2569.yaml
  - data/reports/GO-2024-2597.yaml
  - data/reports/GO-2024-2756.yaml
  - data/reports/GO-2024-2765.yaml
  - data/reports/GO-2024-2853.yaml
  - data/reports/GO-2024-2860.yaml
  - data/reports/GO-2024-2785.yaml
  - data/reports/GO-2024-2579.yaml
  - data/reports/GO-2024-2747.yaml
  - data/reports/GO-2024-2645.yaml
  - data/reports/GO-2024-2723.yaml
  - data/reports/GO-2024-2690.yaml
  - data/reports/GO-2024-2766.yaml
  - data/reports/GO-2024-2863.yaml
  - data/reports/GO-2024-2641.yaml
  - data/reports/GO-2024-2754.yaml
  - data/reports/GO-2024-2846.yaml
  - data/reports/GO-2024-2580.yaml
  - data/reports/GO-2024-2791.yaml
  - data/reports/GO-2024-2859.yaml
  - data/reports/GO-2024-2752.yaml
  - data/reports/GO-2024-2779.yaml
  - data/reports/GO-2024-2636.yaml
  - data/reports/GO-2024-2675.yaml
  - data/reports/GO-2024-2727.yaml
  - data/reports/GO-2024-2689.yaml
  - data/reports/GO-2024-2803.yaml
  - data/reports/GO-2024-2648.yaml
  - data/reports/GO-2024-2792.yaml
  - data/reports/GO-2024-2861.yaml
  - data/reports/GO-2024-2644.yaml
  - data/reports/GO-2024-2741.yaml
  - data/reports/GO-2024-2692.yaml
  - data/reports/GO-2024-2575.yaml
  - data/reports/GO-2024-2729.yaml
  - data/reports/GO-2024-2757.yaml
  - data/reports/GO-2024-2649.yaml
  - data/reports/GO-2024-2763.yaml
  - data/reports/GO-2024-2703.yaml
  - data/reports/GO-2024-2716.yaml
  - data/reports/GO-2024-2642.yaml
  - data/reports/GO-2024-2704.yaml
  - data/reports/GO-2024-2578.yaml
  - data/reports/GO-2024-2814.yaml
  - data/reports/GO-2024-2581.yaml
  - data/reports/GO-2024-2836.yaml
  - data/reports/GO-2024-2701.yaml
  - data/reports/GO-2024-2746.yaml

Fixes golang/vulndb#2647
Fixes golang/vulndb#2728
Fixes golang/vulndb#2568
Fixes golang/vulndb#2569
Fixes golang/vulndb#2597
Fixes golang/vulndb#2756
Fixes golang/vulndb#2765
Fixes golang/vulndb#2853
Fixes golang/vulndb#2860
Fixes golang/vulndb#2785
Fixes golang/vulndb#2579
Fixes golang/vulndb#2747
Fixes golang/vulndb#2645
Fixes golang/vulndb#2723
Fixes golang/vulndb#2690
Fixes golang/vulndb#2766
Fixes golang/vulndb#2863
Fixes golang/vulndb#2641
Fixes golang/vulndb#2754
Fixes golang/vulndb#2846
Fixes golang/vulndb#2580
Fixes golang/vulndb#2791
Fixes golang/vulndb#2859
Fixes golang/vulndb#2752
Fixes golang/vulndb#2779
Fixes golang/vulndb#2636
Fixes golang/vulndb#2675
Fixes golang/vulndb#2727
Fixes golang/vulndb#2689
Fixes golang/vulndb#2803
Fixes golang/vulndb#2648
Fixes golang/vulndb#2792
Fixes golang/vulndb#2861
Fixes golang/vulndb#2644
Fixes golang/vulndb#2741
Fixes golang/vulndb#2692
Fixes golang/vulndb#2575
Fixes golang/vulndb#2729
Fixes golang/vulndb#2757
Fixes golang/vulndb#2649
Fixes golang/vulndb#2763
Fixes golang/vulndb#2703
Fixes golang/vulndb#2716
Fixes golang/vulndb#2642
Fixes golang/vulndb#2704
Fixes golang/vulndb#2578
Fixes golang/vulndb#2814
Fixes golang/vulndb#2581
Fixes golang/vulndb#2836
Fixes golang/vulndb#2701
Fixes golang/vulndb#2746

Change-Id: I0a5da056b5ccdc1125855a24e7fd6228a2f6d326
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590039
Commit-Queue: Tatiana Bradley <tatianabradley@google.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-04 15:19:21 +00:00
Tatiana Bradley c3c93c09d3 cmd/vulnreport: remove return value from xref
Remove error return value from xref, which always returns nil.

(Caught by unparam and blocking deploy of vulndb)

Change-Id: I4c9423f0d333d7beb9422ee558ed83f3dd99aebf
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590115
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-03 22:38:03 +00:00
Tatiana Bradley f714a15249 cmd/vulnreport: refactor commands to unify processing logs
Change-Id: Iffac3dec16c30c3384ab59955a4d5e53f6a6fbfe
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590037
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-03 20:52:30 +00:00
Tatiana Bradley b1733dedf4 cmd/vulnreport: delete unused command vulnreport duplicates
Change-Id: I78ccf562b43bfe372a21452afb0312efd6948ca9
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590036
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-03 20:51:49 +00:00
Tatiana Bradley 31e9628156 cmd/vulnreport: add no-arg version of vulnreport commit
With no arguments, "vulnreport commit" now individually commits all
reports that have been added/changed (according to git status).
(To commit them all as a single commit, use "vulnreport -batch commit").

The flag "-status=<REVIEW_STATUS>" can additionally be used
to only commit reports with a certain review status.

Change-Id: I4efb4e866166b6153d556409408021dc861656fb
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590035
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-03 20:51:40 +00:00
Tatiana Bradley 7aa642d280 cmd/vulnreport: add a check for basic reference URL existence
Adds a check to "vulnreport fix" that errors if any URLs in the
"references" section return an error or status 404 on HTTP HEAD.
We don't check for other status codes yet.

An experiment to error on all non-200 status codes brought up some
ambiguous cases where the link is still viewable in a browser, e.g.:
    - 429 Too Many Requests (https://vuldb.com/?id.256304)
    - 503 Service Unavailable (http://blog.recurity-labs.com/2017-08-10/scm-vulns):
    - 403 Forbidden (https://www.sap.com/documents/2022/02/fa865ea4-167e-0010-bca6-c68f7e60039b.html)

For now, this is a fix check and not a lint check, meaning it only
applies to new reports, and can technically be ignored (by manually
creating a CL that adds the report).

This CL also deletes existing URLs in the corpus that don't exist
according to this check.

Change-Id: Id14fb79fc2f2c2d4c8145fdc88d11aa33708c94b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/588761
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-03 20:51:31 +00:00
Zvonimir Pavlinovic a9204e253a data/reports: add GO-2024-2572
- data/reports/GO-2024-2572.yaml

Fixes golang/vulndb#2572

Change-Id: Ied99cfbfb0100fdee61c0b351fd52b1b7f9590da
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587835
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
2024-05-28 16:10:17 +00:00
Zvonimir Pavlinovic cf650ac57c data/reports: add GO-2024-2879
- data/reports/GO-2024-2879.yaml

Fixes golang/vulndb#2879

Change-Id: I18cd2d21fdf1c4f97bcf66ae530cab314e253151
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/588295
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-24 20:52:21 +00:00
Tatiana Bradley 9840931d1e cmd/vulnreport: automatically decide whether to create REVIEWED or UNREVIEWED report
Command vulnreport create now decides whether to generate a REVIEWED
or UNREVIEWED report based on issue's labels.

This can be overridden with flag "-status=<REVIEW_STATUS>". The "unreviewed"
flag is removed.

Change-Id: I8f8b808c6f9bbcaeb0dc176fb6cb875b8f9ccee4
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587976
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-23 20:24:39 +00:00
Tatiana Bradley 95da37aca7 doc: add WIP quickstart guide
Adds the beginnings of a guide that can be used as a
reference for the current vulndb triager, in combination
with the older triage guide.

The goal is to document new features / processes
so we can get started with experimenting with them
without needing to overhaul the whole guide before we
have worked out the final process.

Change-Id: Iad8256414fda78ebbdbfc44776a46786cbbb034c
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587975
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-23 20:24:20 +00:00
Tatiana Bradley d97fcd06a3 doc: add documentation for new YAML fields
Change-Id: I79cde31a1e0d42de916376245f6397d86d539eb1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587916
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-23 20:24:05 +00:00
Tatiana Bradley 917c76bfbc cmd/vulnreport: add label triaged
Update the vulnreport triage command to label any issues it triages
as "triaged", and skip issues that are already labeled as such.
(The flag "-f" overrides the skip).

This allows the triager to simply run "vulnreport triage" to triage all
untriaged issues.

Change-Id: I24611166d972c46100b1e8fd38bed1fb87071d11
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587915
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
2024-05-23 17:08:53 +00:00
Zvonimir Pavlinovic c9dc2176a0 data/reports: updates GO-2024-2571.yaml
Updates golang/vulndb#2571

Change-Id: I94a71d44c444ee9314d8ba30a5fc092e4c4be439
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587836
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-23 16:09:24 +00:00
Zvonimir Pavlinovic f76f828bca data/reports: add GO-2024-2874
- data/reports/GO-2024-2874.yaml

Fixes golang/vulndb#2874

Change-Id: I5d42600d42e90b8f75bae92d5be0383f4cc90e55
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587495
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-23 14:47:35 +00:00
Zvonimir Pavlinovic 629db64ed6 data/reports: add GO-2024-2571
- data/reports/GO-2024-2571.yaml

Fixes golang/vulndb#2571

Change-Id: Ifea7f503b427b2574b2629019f1338050e0e75f5
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587535
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-22 20:35:43 +00:00
Zvonimir Pavlinovic 2f2212be65 data/reports: add GO-2024-2870
- data/reports/GO-2024-2870.yaml

Fixes golang/vulndb#2870

Change-Id: Ie430468d1dd0eebcfbbb67de97dc44849671523a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587395
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-22 16:46:37 +00:00
Zvonimir Pavlinovic 106ff8e7b0 data/reports: updates GO-2023-1904.yaml
Aliases: CVE-2022-47931

Updates golang/vulndb#1904

Change-Id: I4f9438791029b24f180e06c939ed11ef07b6f18a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/587335
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-22 16:22:39 +00:00
Zvonimir Pavlinovic 8c9613c5b0 internal/symbols: compute names for index list expression receivers
This is part of computation of the name of the function in vuln. db
format. For "func (A[T1, T1, T3]) Foo", the name should be "A.Foo".

Change-Id: Iaeb7eccf3d72504484e697de972297ff37481255
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586719
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
2024-05-21 17:55:21 +00:00
Tatiana Bradley b22fdb071d data/reports: add 2 reports
- data/reports/GO-2024-2812.yaml
  - data/reports/GO-2024-2813.yaml

Fixes golang/vulndb#2812
Fixes golang/vulndb#2813
Fixes golang/vulndb#2807
Fixes golang/vulndb#2806

Change-Id: Idf3f1c1ae112152dfe7967bb349f9dc9fa10b517
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586140
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-21 15:08:01 +00:00
Tatiana Bradley d6b9156019 data/reports: add GO-2024-2748
- data/reports/GO-2024-2748.yaml

Fixes golang/vulndb#2748

Change-Id: Ifc19a28d55f0be64647a7d983672cebc114703e1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586483
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 19:46:32 +00:00
Tatiana Bradley adae49ed01 data/reports: add GO-2024-2632
- data/reports/GO-2024-2632.yaml

Fixes golang/vulndb#2632

Change-Id: I2a443614387c84545edb992ea308eddf2f844aac
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586482
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 19:46:23 +00:00
Tatiana Bradley fe3aaa5f55 data/reports: add GO-2024-2574
- data/reports/GO-2024-2574.yaml

Fixes golang/vulndb#2574

Change-Id: I2726adaeafa1fb0fb23d267471e1384b525e5dec
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586481
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
2024-05-20 19:46:13 +00:00
Tatiana Bradley 704916289f data/reports: add GO-2024-2694
- data/reports/GO-2024-2694.yaml

Fixes golang/vulndb#2694

Change-Id: I8171ab328330ddb586146ec11620c00df254c19e
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586480
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 19:46:03 +00:00
Tatiana Bradley 48ef8c2a22 data/reports: add GO-2024-2702
- data/reports/GO-2024-2702.yaml

Fixes golang/vulndb#2702

Change-Id: Id06f1bc9aff193e674051b10fba955b4101790be
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586479
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
2024-05-20 19:45:57 +00:00
Tatiana Bradley 1e792e9735 data/reports: add GO-2024-2842
- data/reports/GO-2024-2842.yaml

Fixes golang/vulndb#2842

Change-Id: I11e9a32544564c1add863f60b16222922986cf6a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586478
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
2024-05-20 19:45:51 +00:00
Tatiana Bradley 99eb11df39 data/reports: add GO-2024-2864
Add the first UNREVIEWED report.

  - data/reports/GO-2024-2864.yaml

Fixes golang/vulndb#2864

Change-Id: Ib67d84b1da34f0a9ede9af69fdef084efa44db17
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/586295
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 16:07:13 +00:00