ikiwiki/po
Joey Hess 72b5ef2c5f Fix CSRF attacks against the preferences and edit forms. Closes: #475445
The fix involved embedding the session id in the forms, and not allowing the
forms to be submitted if the embedded id does not match the session id.

In the case of the preferences form, if the session id is not embedded,
then the CGI parameters are cleared. This avoids a secondary attack where the
link to the preferences form prefills password or other fields, and
the user hits "submit" without noticing these prefilled values.

In the case of the editpage form, the anonok plugin can allow anyone to edit,
and so I chose not to guard against CSRF attacks against users who are not
logged in. Otherwise, it also embeds the session id and checks it.

For page editing, I assume that the user will notice if content or commit
message is changed because of CGI parameters, and won't blndly hit save page.
So I didn't block those CGI paramters. (It's even possible to use those CGI
parameters, for good, not for evil, I guess..)

The only other CSRF attack I can think of in ikiwiki involves the poll plugin.
It's certianly possible to set up a link that causes the user to unknowingly
vote in a poll. However, the poll plugin is not intended to be used for things
that people would want to attack, since anyone can after all edit the poll page
and fill in any values they like. So this "attack" is ignorable.
2008-04-10 16:35:30 -04:00
..
.gitignore update ignores 2007-11-08 15:26:31 -05:00
Makefile defer po and pot file updating until package build time 2008-03-21 16:32:23 -04:00
bg.po update po files 2008-02-03 15:02:34 -05:00
cs.po update po files 2008-02-03 15:02:34 -05:00
da.po * Add the linkify and scan hooks. These hooks can be used to implement 2008-02-11 22:48:27 -05:00
es.po * Updated Spanish translation from Victor Moral. 2008-03-06 12:04:24 -05:00
fr.po * French translation update. Closes: #471010 2008-03-15 12:35:42 -04:00
gu.po update po files 2008-02-03 15:02:34 -05:00
ikiwiki.pot Fix CSRF attacks against the preferences and edit forms. Closes: #475445 2008-04-10 16:35:30 -04:00
pl.po update po files 2008-02-03 15:02:34 -05:00
sv.po update po files 2008-02-03 15:02:34 -05:00
vi.po update po files 2008-02-03 15:02:34 -05:00