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

1822 Коммитов

Автор SHA1 Сообщение Дата
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
Tatiana Bradley 4191954a9d internal/report: sort references in Fix
Sort references by type, then alphabetically.

Change-Id: Ia09085488f62829f5216c5cb90db680821afc1ea
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585418
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 16:06:51 +00:00
Tatiana Bradley 2122bde855 internal/{report, symbols}: various fixes to support automation
Adds a few general improvements to make it more likely that
automation will succeed with no lint/fix errors for UNREVIEWED
reports.

Specifically:
- For CVEs:
    - don't populate a package if it is the same as the module path
    - fix incorrect classification of vulns as affecting stdlib
if their packages don't contain a "." (usually this is a mistake)
- Auto-convert "versions" to "non_go_versions" if none of the versions
exist according to the proxy
- Make error messages for symbol population more specific so it is
more clear what caused the error
- Add an advisory referencing the source ID if not present
- Improve classification of advisories by checking if a CVE/GHSA alias
is actually referenced
- Relax lint checks for unreviewed reports:
    - Unreviewed report summaries do not need to conform to style
    - Unreviewed reports must have at least one advisory, but may have more

Change-Id: I3762202d4eeb60cff3dc407c3f9ab9a208a91134
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/583476
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-20 16:05:42 +00:00
Tatiana Bradley 440437435d internal/report: move TODO check to lint
Move the check for outstanding TODOs from the vulnreport
fix function to the report.Lint function.

Change-Id: I909dae66400423453c6178ec452462e0cf1f4273
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585417
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-20 16:04:59 +00:00
Tatiana Bradley 86f3a070e2 cmd/vulnreport: add flag -batch to commit
Flag -batch causes vulnreport commit to (attempt to) create a single
commit that commits all reports indicated by its arguments, instead
of committing each report separately.

Change-Id: Ib0c9b3d52c7654ac952e78ca042ce5f29b98f48a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585439
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 16:04:42 +00:00
Tatiana Bradley 65abc06ddc cmd/vulnreport: add flag -unreviewed to create
Flag -unreviewed causes create to generate unreviewed reports
(with no description and no TODOs).

Change-Id: If60eeb22983b3b6480d440de740e6eedf3fcf8d9
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585438
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 16:04:28 +00:00
Tatiana Bradley 6219b9d723 internal/report: add a lint check requiring a review_status
All non-excluded reports must now contain a status (either REVIEWED
or UNREVIEWED).

Change-Id: I7c3d217a5efc7f7fc4a15e22b277d456177212c4
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585518
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 16:04:13 +00:00
Tatiana Bradley 69d9a200a8 data: apply REVIEWED status to all existing reports and osv
Change-Id: I862c5bb24b9c08c29f0d437fd1be61da0319ef0d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585517
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-20 16:03:47 +00:00
Tatiana Bradley a74f2d7941 internal/report: make UNREVIEWED default status in New
In report.New, make UNREVIEWED the default status. This
can be overridden via the WithReviewStatus() option.

(This does not change the fact that vulnreport create creates
REVIEWED reports by default).

Change-Id: Id4c6d453a2b977986381eb81b7e2fb1087c9b735
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585516
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-20 16:02:51 +00:00
Tatiana Bradley 43df709521 internal/report: add review_status field to YAML and OSV
Add support for the field "review_status" for both YAML
and OSV, but don't yet publish any reports with the field.

Newly created reports will be marked REVIEWED and newly "unexcluded"
reports will be marked UNREVIEWED by default.

Change-Id: Id04c9d1c9f3240b1fa277c23c2351627c99b1fc4
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/585515
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-20 16:02:37 +00:00
Tatiana Bradley a60d173f1f cmd/vulnreport: add command vulnreport triage
Replace "vulnreport duplicates" with a new command, "vulnreport triage"
that checks the current open issues for duplicates and issues that are likely
not affecting Go code, and determines the issues' priority.

Likely duplicates are labeled "possible duplicate" and issues that may
not affect Go code are labeled "possibly not Go". (This is determined
based on the number of excluded issues labeled "NOT_GO_CODE" that also
affect this module).

An issue is considered high priority if its module has more than 100
importers and has more existing regular reports than excluded reports.

Issues that are high priority are automatically labeled "high priority".

Number of importers is currently determined based on a static file that
is checked into the repo.

Change-Id: Iecb311a68c8c15851417c0f8561df23bcd0e467d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/584976
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-20 16:02:20 +00:00
Tatiana Bradley 8a00423e35 cmd/vulnreport: refactor vulnreport commands to reuse code
Re-structure the vulnreport commands as collections of composable
types that perform common operations, such as reading GitHub issues
and creating new reports.

This allows us to re-use code & increase the consistency of
the various commands' behavior. It also makes it easier to create new
commands and operate on batches of issues / reports.

Change-Id: I5ffb9c5cf2c9169ca755693d460ee13dc94c18f6
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/584217
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-05-17 20:42:06 +00:00
Tatiana Bradley 610562879f internal/report, all: use time.Now as default created time
For new reports, the default created time is now time.Now(). An
alternate time (e.g., for testing) can be provided via the WithCreated()
option.

Update tests to include a placeholder created time.

Change-Id: I2c48ac56c89d2f33310fca58ae44ff7e9035f609
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/583837
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-15 21:12:12 +00:00
Tatiana Bradley 2ff2c865e4 all: rename cveschema5 and cveschema to cve5 and cve4
Change-Id: I361574a534adbfdbbe052ed9d6b93b9ff0e01081
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/583657
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-05-15 14:51:25 +00:00