View Issue Details

IDProjectCategoryView StatusLast Update
0000707Composrcorepublic2014-11-24 22:43
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0000707: Support security tokens on POST forms
DescriptionA security tactic is to force time-limited security tokens for POST forms, so that CSRF attacks cannot be used to perform malicious website requests.

Composr has referrer testing, but if the user has referrers disabled then their security will be diminished. Also, if a hacker somehow has access to another part of the domain the referrer check would pass.

Security tokens should be optional, perhaps with a white-list of pages that don't have them. This is so people can make their own POSTed forms without having to be a PHP programmer.
TagsNo tags attached.
Time estimation (hours)5
Sponsorship open

Activities

Chris Graham

2014-11-24 22:43

administrator   ~0002343

Implemented this, but not quite as described. The security tokens are simply the session IDs. This has the advantage of not breaking the back button as the token can be re-used, having a much simpler implementation (no new DB table, for example), and being more robust. If the session ID was stolen, it is a theoretically weaker solution, but stealing of session IDs is already a major risk in itself and something we specifically guard against.

There is an option for configuring what pages to not use this with, in case external integrations are required that do not have access to the session ID.

Issue History

Date Modified Username Field Change