Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module golang.org/x/net to v0.23.0 [security] #116

Merged
merged 1 commit into from
May 8, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 11, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
golang.org/x/net v0.9.0 -> v0.23.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2023-3978

Text nodes not in the HTML namespace are incorrectly literally rendered, causing text which should be escaped to not be. This could lead to an XSS attack.

CVE-2023-39325

A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attacker to create a new request while the existing one is still executing.

With the fix applied, HTTP/2 servers now bound the number of simultaneously executing handler goroutines to the stream concurrency limit (MaxConcurrentStreams). New requests arriving when at the limit (which can only happen after the client has reset an existing, in-flight request) will be queued until a handler exits. If the request queue grows too large, the server will terminate the connection.

This issue is also fixed in golang.org/x/net/http2 for users manually configuring HTTP/2.

The default stream concurrency limit is 250 streams (requests) per HTTP/2 connection. This value may be adjusted using the golang.org/x/net/http2 package; see the Server.MaxConcurrentStreams setting and the ConfigureServer function.

CVE-2023-44487

HTTP/2 Rapid reset attack

The HTTP/2 protocol allows clients to indicate to the server that a previous stream should be canceled by sending a RST_STREAM frame. The protocol does not require the client and server to coordinate the cancellation in any way, the client may do it unilaterally. The client may also assume that the cancellation will take effect immediately when the server receives the RST_STREAM frame, before any other data from that TCP connection is processed.

Abuse of this feature is called a Rapid Reset attack because it relies on the ability for an endpoint to send a RST_STREAM frame immediately after sending a request frame, which makes the other endpoint start working and then rapidly resets the request. The request is canceled, but leaves the HTTP/2 connection open.

The HTTP/2 Rapid Reset attack built on this capability is simple: The client opens a large number of streams at once as in the standard HTTP/2 attack, but rather than waiting for a response to each request stream from the server or proxy, the client cancels each request immediately.

The ability to reset streams immediately allows each connection to have an indefinite number of requests in flight. By explicitly canceling the requests, the attacker never exceeds the limit on the number of concurrent open streams. The number of in-flight requests is no longer dependent on the round-trip time (RTT), but only on the available network bandwidth.

In a typical HTTP/2 server implementation, the server will still have to do significant amounts of work for canceled requests, such as allocating new stream data structures, parsing the query and doing header decompression, and mapping the URL to a resource. For reverse proxy implementations, the request may be proxied to the backend server before the RST_STREAM frame is processed. The client on the other hand paid almost no costs for sending the requests. This creates an exploitable cost asymmetry between the server and the client.

Multiple software artifacts implementing HTTP/2 are affected. This advisory was originally ingested from the swift-nio-http2 repo advisory and their original conent follows.

swift-nio-http2 specific advisory

swift-nio-http2 is vulnerable to a denial-of-service vulnerability in which a malicious client can create and then reset a large number of HTTP/2 streams in a short period of time. This causes swift-nio-http2 to commit to a large amount of expensive work which it then throws away, including creating entirely new Channels to serve the traffic. This can easily overwhelm an EventLoop and prevent it from making forward progress.

swift-nio-http2 1.28 contains a remediation for this issue that applies reset counter using a sliding window. This constrains the number of stream resets that may occur in a given window of time. Clients violating this limit will have their connections torn down. This allows clients to continue to cancel streams for legitimate reasons, while constraining malicious actors.

CVE-2023-45288

An attacker may cause an HTTP/2 endpoint to read arbitrary amounts of header data by sending an excessive number of CONTINUATION frames. Maintaining HPACK state requires parsing and processing all HEADERS and CONTINUATION frames on a connection. When a request's headers exceed MaxHeaderBytes, no memory is allocated to store the excess headers, but they are still parsed. This permits an attacker to cause an HTTP/2 endpoint to read arbitrary amounts of header data, all associated with a request which is going to be rejected. These headers can include Huffman-encoded data which is significantly more expensive for the receiver to decode than for an attacker to send. The fix sets a limit on the amount of excess header frames we will process before closing a connection.


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added dependencies security Security-Related labels Oct 11, 2023
@renovate renovate bot changed the title Update module golang.org/x/net to v0.13.0 [SECURITY] Update module golang.org/x/net to v0.17.0 [SECURITY] Oct 12, 2023
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch 2 times, most recently from 426bdfe to 666d852 Compare October 12, 2023 13:00
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch from 666d852 to 6a73c10 Compare December 22, 2023 15:03
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch 2 times, most recently from 6f9a8c6 to c6a9f6e Compare January 11, 2024 15:38
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch from c6a9f6e to ec8a0be Compare January 18, 2024 18:43
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch from ec8a0be to 140a471 Compare February 1, 2024 08:33
@renovate renovate bot changed the title Update module golang.org/x/net to v0.17.0 [SECURITY] Update module golang.org/x/net to v0.23.0 [SECURITY] Apr 19, 2024
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch 5 times, most recently from 9c0a8e4 to c96a049 Compare April 26, 2024 13:26
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch from c96a049 to 29a35cf Compare April 30, 2024 13:02
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch 2 times, most recently from 808fef0 to 3264022 Compare May 2, 2024 12:58
@renovate renovate bot changed the title Update module golang.org/x/net to v0.23.0 [SECURITY] fix(deps): update module golang.org/x/net to v0.23.0 [security] May 2, 2024
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch 2 times, most recently from 87e3aa1 to fb5f92b Compare May 8, 2024 20:14
mmlb
mmlb previously approved these changes May 8, 2024
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch from fb5f92b to 0981cf8 Compare May 8, 2024 20:15
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch from 0981cf8 to e5c9a5a Compare May 8, 2024 20:18
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch 2 times, most recently from 5f0546f to 3793fd8 Compare May 8, 2024 20:38
@renovate renovate bot force-pushed the renovate/go-golang.org/x/net-vulnerability branch from 3793fd8 to 08845e8 Compare May 8, 2024 20:44
@mmlb mmlb merged commit e97725c into main May 8, 2024
6 checks passed
@mmlb mmlb deleted the renovate/go-golang.org/x/net-vulnerability branch May 8, 2024 20:47
mmlb referenced this pull request in metal-toolbox/vogelkop Jun 14, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/metal-toolbox/ironlib](https://togithub.com/metal-toolbox/ironlib)
| `v0.2.18-0.20240611133518-3514176030a4` -> `v0.2.18` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmetal-toolbox%2fironlib/v0.2.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fmetal-toolbox%2fironlib/v0.2.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fmetal-toolbox%2fironlib/v0.2.18-0.20240611133518-3514176030a4/v0.2.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmetal-toolbox%2fironlib/v0.2.18-0.20240611133518-3514176030a4/v0.2.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>metal-toolbox/ironlib
(github.com/metal-toolbox/ironlib)</summary>

###
[`v0.2.18`](https://togithub.com/metal-toolbox/ironlib/releases/tag/v0.2.18)

[Compare
Source](https://togithub.com/metal-toolbox/ironlib/compare/v0.2.17...v0.2.18)

#### What's Changed

- Vc/instrument firmware by
[@&#8203;DoctorVin](https://togithub.com/DoctorVin) in
[https://github.com/metal-toolbox/ironlib/pull/123](https://togithub.com/metal-toolbox/ironlib/pull/123)
- Dockerfile: add support to build non-dist image by
[@&#8203;joelrebel](https://togithub.com/joelrebel) in
[https://github.com/metal-toolbox/ironlib/pull/124](https://togithub.com/metal-toolbox/ironlib/pull/124)
- Update actions/checkout action to v4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/112](https://togithub.com/metal-toolbox/ironlib/pull/112)
- House/spring cleaning by [@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/128](https://togithub.com/metal-toolbox/ironlib/pull/128)
- ironlib is able to fill a disk with all zeros by
[@&#8203;turegano-equinix](https://togithub.com/turegano-equinix) in
[https://github.com/metal-toolbox/ironlib/pull/131](https://togithub.com/metal-toolbox/ironlib/pull/131)
- ironlib is able to detect ineffective wipes by
[@&#8203;turegano-equinix](https://togithub.com/turegano-equinix) in
[https://github.com/metal-toolbox/ironlib/pull/135](https://togithub.com/metal-toolbox/ironlib/pull/135)
- House Cleaning Part 2 - Electric Boogaloo! by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/133](https://togithub.com/metal-toolbox/ironlib/pull/133)
- Better nvme capability detection by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/129](https://togithub.com/metal-toolbox/ironlib/pull/129)
- Quiet down tests by [@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/137](https://togithub.com/metal-toolbox/ironlib/pull/137)
- More refactors, fixes, etc by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/141](https://togithub.com/metal-toolbox/ironlib/pull/141)
- chore(deps): update docker/login-action action to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/118](https://togithub.com/metal-toolbox/ironlib/pull/118)
- chore(deps): update docker/build-push-action action to v5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/113](https://togithub.com/metal-toolbox/ironlib/pull/113)
- fix(deps): update module github.com/r3labs/diff/v2 to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/108](https://togithub.com/metal-toolbox/ironlib/pull/108)
- chore(deps): update docker/metadata-action action to v5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/144](https://togithub.com/metal-toolbox/ironlib/pull/144)
- chore(deps): update actions/setup-go action to v5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/143](https://togithub.com/metal-toolbox/ironlib/pull/143)
- chore(deps): update module google.golang.org/protobuf to v1.33.0
\[security] by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/126](https://togithub.com/metal-toolbox/ironlib/pull/126)
- fix(deps): update module golang.org/x/net to v0.23.0 \[security] by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/116](https://togithub.com/metal-toolbox/ironlib/pull/116)
- chore(deps): update docker/setup-buildx-action action to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/146](https://togithub.com/metal-toolbox/ironlib/pull/146)
- fix(deps): update module github.com/sirupsen/logrus to v1.9.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/100](https://togithub.com/metal-toolbox/ironlib/pull/100)
- chore(deps): update anchore/sbom-action action to v0.15.11 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/99](https://togithub.com/metal-toolbox/ironlib/pull/99)
- fix(deps): update module github.com/tidwall/gjson to v1.17.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/109](https://togithub.com/metal-toolbox/ironlib/pull/109)
- fix(deps): update module golang.org/x/net to v0.24.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/145](https://togithub.com/metal-toolbox/ironlib/pull/145)
- chore(deps): update golangci/golangci-lint-action action to v5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/147](https://togithub.com/metal-toolbox/ironlib/pull/147)
- fix(deps): update module github.com/stretchr/testify to v1.9.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/101](https://togithub.com/metal-toolbox/ironlib/pull/101)
- fix(deps): update module github.com/beevik/etree to v1.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/97](https://togithub.com/metal-toolbox/ironlib/pull/97)
- fix(deps): update module golang.org/x/net to v0.25.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/148](https://togithub.com/metal-toolbox/ironlib/pull/148)
- chore(deps): update github/codeql-action action to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/149](https://togithub.com/metal-toolbox/ironlib/pull/149)
- Update CODEOWNERS by
[@&#8203;DoctorVin](https://togithub.com/DoctorVin) in
[https://github.com/metal-toolbox/ironlib/pull/152](https://togithub.com/metal-toolbox/ironlib/pull/152)
- Update modules that renovate is having trouble with by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/150](https://togithub.com/metal-toolbox/ironlib/pull/150)
- chore(deps): update golangci/golangci-lint-action action to v6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/metal-toolbox/ironlib/pull/153](https://togithub.com/metal-toolbox/ironlib/pull/153)
- Add DiskWipe support to nvme using sanitize by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/136](https://togithub.com/metal-toolbox/ironlib/pull/136)
- Add format support to nvme WipeDisk by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/142](https://togithub.com/metal-toolbox/ironlib/pull/142)
- Add ns delete/create support to nvme WipeDisk by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/154](https://togithub.com/metal-toolbox/ironlib/pull/154)
- More clean ups by [@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/158](https://togithub.com/metal-toolbox/ironlib/pull/158)
- Add basic support for blkdiscard by
[@&#8203;ScottGarman](https://togithub.com/ScottGarman) in
[https://github.com/metal-toolbox/ironlib/pull/159](https://togithub.com/metal-toolbox/ironlib/pull/159)
- Some more clean ups by [@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/161](https://togithub.com/metal-toolbox/ironlib/pull/161)
- Rename Disk stuff -> Drive and teach diskwipe example more tricks by
[@&#8203;mmlb](https://togithub.com/mmlb) in
[https://github.com/metal-toolbox/ironlib/pull/163](https://togithub.com/metal-toolbox/ironlib/pull/163)

#### New Contributors

- [@&#8203;turegano-equinix](https://togithub.com/turegano-equinix) made
their first contribution in
[https://github.com/metal-toolbox/ironlib/pull/131](https://togithub.com/metal-toolbox/ironlib/pull/131)
- [@&#8203;ScottGarman](https://togithub.com/ScottGarman) made their
first contribution in
[https://github.com/metal-toolbox/ironlib/pull/159](https://togithub.com/metal-toolbox/ironlib/pull/159)

**Full Changelog**:
metal-toolbox/ironlib@v0.2.17...v0.2.18

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/metal-toolbox/vogelkop).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies security Security-Related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant