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

Middleware for Echo v4 #155

Merged
merged 2 commits into from Sep 22, 2020
Merged

Middleware for Echo v4 #155

merged 2 commits into from Sep 22, 2020

Conversation

Julio-Guerra
Copy link
Collaborator

No description provided.

@Julio-Guerra Julio-Guerra added the enhancement New feature or request label Sep 21, 2020
@Julio-Guerra Julio-Guerra added this to the v0.16.0 milestone Sep 21, 2020
@Julio-Guerra Julio-Guerra self-assigned this Sep 21, 2020
@Julio-Guerra Julio-Guerra changed the base branch from master to dev September 21, 2020 20:43
…ho v4

Enable partial instrumentation of Echo v4 in order to run the In-App WAF when
the body is parsed into a Go object. This is achieved thanks to a security rule
dynamically attaching the In-App WAF to Echo's `Bind()` method.
@Julio-Guerra Julio-Guerra merged commit 98a9bc9 into dev Sep 22, 2020
@Julio-Guerra Julio-Guerra deleted the feature/echo-v4 branch September 22, 2020 09:50
Julio-Guerra added a commit that referenced this pull request Sep 22, 2020
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`).
Julio-Guerra added a commit that referenced this pull request Sep 22, 2020
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`).
Julio-Guerra added a commit to amnay-mo/go-agent that referenced this pull request Sep 30, 2020
New Feature:

- (sqreen#152, sqreen#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:

- (sqreen#153) RASP shellshock: properly handle environment variables containing
  variable definitions (eg. `TERMCAP`).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant