Commit Graph
9 Commits
Author SHA1 Message Date
Christophe Simonis 7636b510a2 [ADD] *: CSRF protection in forms and routes
* make CSRF protection the default on all non-SAFE methods
  note: there currently is no way to call a CSRF-protected endpoint
  without a form-encoded entity-body as that's the only place we get the
  CSRF token from.
* simple CSRF token generation: just use the HMAC'd session id, no
  generating a new random token per session then HMAC it
* use constant-time equal function to avoid timing attacks
* assert that a database secret is configured before hashing/validating
  the CSRF token
* opt-out database manager from CSRF: The super-admin password serves
  the purpose of a CSRF token in the database manager screens.
  There is no request database to obtain the
  secret and generate a CSRF token.
2015-10-01 01:36:50 +02:00
Leonardo Rochael Almeida 60af7cac02 [IMP] replace simplejson with stdlib json
The stdlib version of the json library is more recent than the 3.5.3
version we are pinning in `requirements.txt`

There is no reason to use it.

Closes #6940
2015-09-28 10:53:32 +02:00
Antony Lesuisse d5b4cd627c more controller conversion to new route api
bzr revid: al@openerp.com-20131027173143-tfxc7e7vqn7re6wb
2013-10-27 18:31:43 +01:00
Xavier Morel f2feffe5e2 [FIX] backwards-compatible controller decorator not backwards-compatible at all, replace with @route
bzr revid: xmo@openerp.com-20131015095331-r2xm2198zrwax0c7
2013-10-15 11:53:31 +02:00
Xavier Morel 06122bce12 [FIX] base_import: eval_context ref
bzr revid: xmo@openerp.com-20121127164543-xizox8d20e93lx21
2012-11-27 17:45:43 +01:00
Antony Lesuisse 84a7523a63 [IMP] remove standalone web client, fix imports
bzr revid: al@openerp.com-20121010204617-ah29rz616xo7i2dr
2012-10-10 22:46:17 +02:00
Xavier Morel b1407fc769 [FIX] field for file mime type is file_type, not file_mime
bzr revid: xmo@openerp.com-20120830103928-rjtrdvkzrybfpi0c
2012-08-30 12:39:28 +02:00
Xavier Morel 7006b17af3 [IMP] un-b64 the import file field, use raw binary
bzr revid: xmo@openerp.com-20120830103215-trv5cjg9jvj8ano1
2012-08-30 12:32:15 +02:00
Xavier Morel b8f93a7bc6 [ADD] base import logic: implement creating an import, uploading a file and displaying the preview
bzr revid: xmo@openerp.com-20120814121610-j2rpg7u5zh4h93j1
2012-08-14 14:16:10 +02:00