summaryrefslogtreecommitdiff
path: root/addons/project/static/src/xml/project.xml
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-02-13 14:16:25 +0100
committerGitHub <noreply@github.com>2019-02-13 14:16:25 +0100
commit2d3dbff9653ed2b2a35e997f5c1faa99007085c5 (patch)
tree0ce58a74fde6024cd654ab04390775eaf93e9bf7 /addons/project/static/src/xml/project.xml
parent984bf2492a16f0ff357b3fc03712c68f1a011f96 (diff)
parent7abeaf56b3ae544dbe24c4a9fe4fa6d919582aba (diff)
[IMP] web, *: remove explicit references to `session_id`
Before this rev. the `session_id` was 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. Since rev. odoo/odoo@f4d541e the `session_id` cookie uses the `httponly` flag so it cannot be accessed through client side script. Task 1905359 closes odoo/odoo#30098
Diffstat (limited to 'addons/project/static/src/xml/project.xml')
-rw-r--r--addons/project/static/src/xml/project.xml1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/project/static/src/xml/project.xml b/addons/project/static/src/xml/project.xml
index ea69825c5a7..4be07b70fcd 100644
--- a/addons/project/static/src/xml/project.xml
+++ b/addons/project/static/src/xml/project.xml
@@ -15,7 +15,6 @@
<t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
<input type="hidden" name="model" t-att-value="widget.modelName" />
<input type="hidden" name="id" t-att-value="widget.id" />
- <input type="hidden" name="session_id" t-att-value="widget.getSession().session_id" />
</t>
</span>
</t>