From 31664422c11ab1e9c34ad6b2eb1dfba2af72e359 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Thu, 10 Jan 2019 11:25:13 +0000 Subject: [IMP] web, *: remove explicit references to `session_id` Since rev. odoo/odoo@f4d541e the `session_id` cookie uses the `httponly` flag so it cannot be accessed through client side script. But before this rev. the `session_id` was still provided by the server to the webclient (in session_info, mostly) and was stored and accessible. This made XSS injection more dangerous than they should be as it was very easy to steal the `session_id`. As the browser automatically set the `session_id` on every request to the server, the webclient shouldn't need any explicit reference. --- addons/web/static/src/xml/base.xml | 4 ---- 1 file changed, 4 deletions(-) (limited to 'addons/web/static/src/xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 5e2f27ccc66..dc40c962333 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -378,7 +378,6 @@ - Add... @@ -998,7 +997,6 @@
- @@ -1042,7 +1040,6 @@ - @@ -1567,7 +1564,6 @@ - -- cgit v1.2.3