Conversation
Notices
-
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:16:55 UTC Hannes @moonman @maiyannah you should mention me when you find stuff like this -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:16:55 UTC Hannes @moonman @maiyannah but it's weird, i'm pretty sure gnusocial used to sanitize the source before. -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:17:55 UTC Hannes @moonman @maiyannah i wonder if sanitation of the source got lost in the migration from saveNotice to saveActivity @mmn ? -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:19:42 UTC Hannes @mmn @moonman @maiyannah the thing is that gs itself sends html in the source field in the api http://qttr.at/1gns -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:21:37 UTC Hannes @mmn @moonman @maiyannah and clients has no way to tell if the html comes from gs or is injected by the user. -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:31:41 UTC Hannes @maiyannah yes -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:35:25 UTC Hannes @maiyannah the user (client) can send a any "source" when posting to api. imo it should be treated/sanitised by gs just like the notice text -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:43:29 UTC Hannes @maiyannah apparently not -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:44:05 UTC Hannes @maiyannah and now we'll have to assume it might have not, even if it's fixed in newer gnusocial -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 20:58:56 UTC Hannes @maiyannah this is what i did to !qvitter https://git.gnu.io/h2p/Qvitter/commit/632d5f113627df4c158be973aefc1afc018764f4 -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 21:02:35 UTC Hannes @maiyannah yes htmlpurifier should be enough, i guess? -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 21:12:53 UTC Hannes @maiyannah @mmn although, it would be interesting to see if anyone could come up with a dangerous script with only 32 chars -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 21:14:13 UTC Hannes @maiyannah @mmn e.g. i could do <script>alert("hello")</script> but not <script>console.log("hello")</script> -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 21:14:51 UTC Hannes @maiyannah ok. but the source field is not federated. -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 22:26:58 UTC Hannes @mmn Notice_source is only for known sources. unknown sources are served directly from the notice table -
Hannes (hannes2peer@quitter.se)'s status on Thursday, 01-Sep-2016 22:28:08 UTC Hannes @zash if it's generated by gnusocial i would consider it safe enough https://git.gnu.io/gnu/gnu-social/blob/master/lib/apiaction.php#L344
-