Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

v0.16.1 #160

Merged
merged 18 commits into from Sep 30, 2020
Merged

v0.16.1 #160

merged 18 commits into from Sep 30, 2020

Conversation

Julio-Guerra
Copy link
Collaborator

Fixes

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.
@Julio-Guerra Julio-Guerra added this to the v0.16.1 milestone Sep 30, 2020
@Julio-Guerra Julio-Guerra self-assigned this Sep 30, 2020
@Julio-Guerra Julio-Guerra merged commit c005080 into master Sep 30, 2020
@Julio-Guerra Julio-Guerra deleted the hotfix/v0.16.1 branch September 30, 2020 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant