discourse/plugins/chat
Alan Guo Xiang Tan bfc3132bb2
SECURITY: Impose a upper bound on limit params in various controllers
What is the problem here?

In multiple controllers, we are accepting a `limit` params but do not
impose any upper bound on the values being accepted. Without an upper
bound, we may be allowing arbituary users from generating DB queries
which may end up exhausing the resources on the server.

What is the fix here?

A new `fetch_limit_from_params` helper method is introduced in
`ApplicationController` that can be used by controller actions to safely
get the limit from the params as a default limit and maximum limit has
to be set. When an invalid limit params is encountered, the server will
respond with the 400 response code.
2023-07-28 12:53:46 +01:00
..
app SECURITY: Impose a upper bound on limit params in various controllers 2023-07-28 12:53:46 +01:00
assets DEV: Remove chat TODO (#22846) 2023-07-28 09:10:14 +08:00
config FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
db DEV: Remove experimental setting row for chat threads (#22730) 2023-07-27 15:29:28 +02:00
lib DEV: Do one query per month when exporting chat messages (#22746) 2023-07-27 21:56:32 +04:00
public
spec DEV: Do one query per month when exporting chat messages (#22746) 2023-07-27 21:56:32 +04:00
test/javascripts FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
plugin.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.