Skip to content

Conversation

@PiotrSikora
Copy link
Member

Restricted callbacks can invoke only allow-listed hostcalls.

This mechanism is introduced primarily to prevent malicious plugins from
modifying the state from "proxy_on_memory_allocate" ("malloc") callbacks,
which could result in dangling pointers and/or out-of-bound access.

While there, limit the hostcalls available during early initialization
("_initialize", "_start", and "main" callbacks).

Reported by Chris Ertl from Google Security.

Signed-off-by: Piotr Sikora [email protected]

Restricted callbacks can invoke only allow-listed hostcalls.

This mechanism is introduced primarily to prevent malicious plugins from
modifying the state from "proxy_on_memory_allocate" ("malloc") callbacks,
which could result in dangling pointers and/or out-of-bound access.

While there, limit the hostcalls available during early initialization
("_initialize", "_start", and "main" callbacks).

Reported by Chris Ertl from Google Security.

Signed-off-by: Piotr Sikora <[email protected]>
@PiotrSikora PiotrSikora marked this pull request as ready for review August 4, 2022 07:36
@PiotrSikora PiotrSikora requested a review from mathetake as a code owner August 4, 2022 07:36
@PiotrSikora PiotrSikora requested a review from mpwarres August 4, 2022 07:44
@PiotrSikora PiotrSikora merged commit 66b3b7d into proxy-wasm:master Aug 5, 2022
knm3000 pushed a commit to knm3000/proxy-wasm-cpp-host that referenced this pull request Aug 17, 2022
Restricted callbacks can invoke only allow-listed hostcalls.

This mechanism is introduced primarily to prevent malicious plugins from
modifying the state from "proxy_on_memory_allocate" ("malloc") callbacks,
which could result in dangling pointers and/or out-of-bound access.

While there, limit the hostcalls available during early initialization
("_initialize", "_start", and "main" callbacks).

Reported by Chris Ertl from Google Security.

Signed-off-by: Piotr Sikora <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants