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

agent/rule/shellshock: fix splitting environment variables #153

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

Julio-Guerra
Copy link
Collaborator

Fix the environment variable lookup when other variable assignments are in the value.

@Julio-Guerra Julio-Guerra added the bug Something isn't working 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 merged commit cf78a3f into dev Sep 21, 2020
@Julio-Guerra Julio-Guerra deleted the fix/shellshock branch September 21, 2020 15:51
Julio-Guerra pushed 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 pushed 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 pushed 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
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant