This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New Feature: - (#152, #155) Add In-App WAF protection to Echo's request parameter parser: [`Context`](https://pkg.go.dev/github.com/labstack/echo/v4#Context)'s method `Bind()` is now protected by the In-App WAF. The Go value it parses from the HTTP request is made available to the In-App WAF rules via the `GET/POST parameters` field. When blocked, `Bind()` returns a non-nil [`SqreenError` value](https://godoc.org/github.com/sqreen/go-agent/sdk/types#SqreenError) and its caller should immediately return. Read more about the blocking behavior of Sqreen for Go at <https://docs.sqreen.com/go/integration>. Fix: - (#153) RASP shellshock: properly handle environment variables containing variable definitions (eg. `TERMCAP`).
…former Replace the use of `strings.ReplaceAll()` with a case-insensitive regular expression of the request parameter so that it also matches attack information that got transformed (eg. lower-cased).
Replace the use of `strings.ReplaceAll()` with a case-insensitive regular expression of the request parameter so that it also matches attack information that got transformed by the In-App WAF (eg. lower-cased).
Gin's context wrongly implements `context.Context` and doesn't wrap the underlying request context at all. Therefore, we need to use the actual request context `c.Request.Context()` so that the agent can properly manage the request context, but also to correctly propagate values stored in the context.
Gin's context wrongly implements `context.Context` and doesn't wrap the underlying request context at all. Therefore, we need to use the actual request context `c.Request.Context()` so that the agent can properly manage the request context, but also to correctly propagate values stored in the context.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes
(PII: fix In-App WAF attack sanitization #158) PII: make the PII scrubbing of In-App WAF attack events
case-insensitive in order to correctly scrub transformed request parameters.
(sdk/middleware: fix http response content type and length monitoring #159) Monitoring: fix the content type and length monitoring of HTTP
responses.
(sdk/middleware/sqgin: fix request ctx #157) Gin middleware: use the request Go context instead of Gin's so that the
agent can properly manage the request execution context, but also to correctly
propagate values stored in the Go context before the middleware function.