Skip to content

[7.x] Make sure all URLs are relative on intake and execute (#46528)#48161

Merged
joelgriffith merged 1 commit intoelastic:7.xfrom
joelgriffith:backport/7.x/pr-46528
Oct 14, 2019
Merged

[7.x] Make sure all URLs are relative on intake and execute (#46528)#48161
joelgriffith merged 1 commit intoelastic:7.xfrom
joelgriffith:backport/7.x/pr-46528

Conversation

@joelgriffith
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* Fail file-protocol requests and bogon IP

* Revert "Fail file-protocol requests and bogon IP"

This reverts commit 8a1ff56.

* Ensuring all URLs from PDF and PNG reports are relative

* Missing dep, saw it in a prior yarn.lock

* Tighenting our URL checks

* More edgecases that can be triggered with a window.goto type behavior

* Javascript URLs

* Tightening implementation

* New networkPolicy that allows for setting allow/deny list for chromium requests

* Fixing tests, always fail file:// URLs

* Never allow file responses

* Make sure we test other protocols in deny list

* Don't allow `file:` protocols in the allow-list

* Expanding upon network policy to match ufw-style patterns

* Applying network policies to outbound and inbound requests

* Fixing gateway logic on network-policy

* My network-policy opus

* Moving to more explicit ufw format

* Updating snapshots

* Default reject requests when enabled and no rule matches
@joelgriffith joelgriffith added the backport This PR is a backport of another PR label Oct 14, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants