This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse
Blake Erickson fb019d1712
SECURITY: Multiple commits for Version bump 3.1.0.beta3 (#20707)
* SECURITY: Fix XSS in full name composer reply

We are using htmlSafe when rendering the name field so we need to escape
any html being passed in.

* SECURITY: Monkey-patch web-push gem to use safer HTTP client

`FinalDestination::HTTP` is our patch of `Net::HTTP` which defend us
against SSRF and DNS rebinding attacks.

* SECURITY: SSRF protection bypass with IPv4-mapped IPv6 addresses

As part of this commit, we've also expanded our list of private IP
ranges based on
https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
and https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml

* SECURITY: XSS on chat excerpts

Non-markdown tags weren't being escaped in chat excerpts. This could be
triggered by editing a chat message containing a tag (self XSS), or by
replying to a chat message with a tag (XSS).

Co-authored-by: Jan Cernik <jancernik12@gmail.com>

* FIX: Escaped mentions in chat excerpts

Mentions are now displayed as using the non-cooked message which fixes
the problem. This is not ideal. I think we might want to rework how
these excerpts are created and rendered in the near future.

Co-authored-by: Jan Cernik <jancernik12@gmail.com>

* SECURITY: Add FinalDestination::FastImage that's SSRF safe

---------

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
Co-authored-by: Jan Cernik <jancernik12@gmail.com>
Co-authored-by: Ted Johansson <ted@discourse.org>
2023-03-16 14:04:46 -06:00
..
adapters FIX: better chat-api error handling (#19550) 2022-12-21 16:11:35 +01:00
components SECURITY: Multiple commits for Version bump 3.1.0.beta3 (#20707) 2023-03-16 14:04:46 -06:00
connectors UX: update user chat preference link for new nav (#20518) 2023-03-03 06:50:47 +08:00
controllers DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
helpers DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
initializers DEV: adds a addChatDrawerStateCallback API (#20640) 2023-03-10 18:49:59 +01:00
lib DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
models FIX: ensures edited message is correctly re-decorated (#20637) 2023-03-10 17:06:13 +01:00
modifiers/chat FIX: improves unread state precision (#20615) 2023-03-09 19:06:33 +01:00
pre-initializers DEV: adds a addChatDrawerStateCallback API (#20640) 2023-03-10 18:49:59 +01:00
routes PERF: various perf improvements of chat-live-pane (#20563) 2023-03-07 18:55:05 +01:00
services DEV: adds a addChatDrawerStateCallback API (#20640) 2023-03-10 18:49:59 +01:00
templates PERF: various perf improvements of chat-live-pane (#20563) 2023-03-07 18:55:05 +01:00
widgets DEV: Pass messageId as a dynamic segment instead of a query param (#20013) 2023-02-01 12:39:23 -03:00
admin-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-route-map.js FEATURE: Chat side panel with threads initial skeleton (#20209) 2023-02-14 11:38:41 +10:00
preferences-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00