# Discourse forum somewhat broken, I can't post the command to show the linux kernel version

**URL:** <https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796>\
**Category:** General Topics\
**Tags:** project\
**Created:** [September 17, 2024, 2:34pm UTC](https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796 "2024-09-17T14:34:19Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![David\_Eastham](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@David\_Eastham](https://community.frame.work/u/David_Eastham)\
**Post date:** [September 19, 2024, 4:43pm UTC](https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796/21 "2024-09-19T16:43:21Z")

</div>

I typed in those magic words and it is fine in the Haiku discourse but can confirm - on the same machine - break it here on the Framework forum. So the glitch would appear to have been fixed by version 3.3.1.

---

<div class="post-metadata">

**Author:** ![junaruga](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/junaruga/32/5342_2.png) [@junaruga](https://community.frame.work/u/junaruga)\
**Post date:** [September 19, 2024, 5:54pm UTC](https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796/22 "2024-09-19T17:54:54Z")

</div>

I think the following thread’s issue may come from a similar cause to this thread’s issue. I am not sure what the “WAF” means.

> [Whenever a post contains "substring" I get a 403 error - #4 by Mr.X\_Mr.X - Support - Discourse Meta](https://meta.discourse.org/t/whenever-a-post-contains-substring-i-get-a-403-error/202846/4)
> 
> You might have a WAF enabled that blocks XSS attempts and substring is commonly used in the exploit syntax. If you’re using Cloudflare with WAF enabled that would be the cause.

---

<div class="post-metadata">

**Author:** ![Daniel\_Gibson](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/daniel_gibson/32/22374_2.png) [@Daniel\_Gibson](https://community.frame.work/u/Daniel_Gibson)\
**Post date:** [September 19, 2024, 6:00pm UTC](https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796/23 "2024-09-19T18:00:58Z")

</div>

This is ridiculous O\_O

Assuming Discourse is properly written software _(I don’t know if it is, but if it isn’t maybe people should stop using it)_, one should be able to post _anything_ without causing XSS attacks or similar - it’s not supposed to execute users posts as code, but just to display them

---

<div class="post-metadata">

**Author:** ![junaruga](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/junaruga/32/5342_2.png) [@junaruga](https://community.frame.work/u/junaruga)\
**Post date:** [September 19, 2024, 7:24pm UTC](https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796/24 "2024-09-19T19:24:09Z")

</div>

I guess that a software layer or network filtering out the specific words may be different from the place of Discourse application.

I imagined, the software layers such as Discourse (Ruby on Rails, web application) on an HTTP(S) server (Nginx or HTTPD), or HTTP(S) client-server network process, or a firewall between a client and a server.

---

<div class="post-metadata">

**Author:** ![Daniel\_Gibson](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/daniel_gibson/32/22374_2.png) [@Daniel\_Gibson](https://community.frame.work/u/Daniel_Gibson)\
**Post date:** [September 21, 2024, 3:09am UTC](https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796/25 "2024-09-21T03:09:21Z")

</div>

You might be right about this, someone sent me this link with this suspicious line: [coreruleset/rules/REQUEST-932-APPLICATION-ATTACK-RCE.conf at main · coreruleset/coreruleset · GitHub](https://github.com/coreruleset/coreruleset/blob/main/rules/REQUEST-932-APPLICATION-ATTACK-RCE.conf#L30) (and WAF supports OWASP rules: [WAF Managed Rules](https://developers.cloudflare.com/waf/managed-rules/#managed-rulesets))

However, if this is the case, WAF is misconfigured for this particular usecase, IMHO.  
People should be able to post arbitrary text, including code and linux shell commands, to this forum, and I’m sure Discourse will be able to escape it properly instead of executing it.  
If it doesn’t, this WAF snakeoil isn’t gonna save you anyway, as circumventing it seems easy enough (for example `uname --all` is accepted even though it does the exact same thing as the forbidden uname invocation - though I’m not sure what was supposed to be so bad about uname in the first place).

And if you think that you need something like this after all, it needs better integration - neither the “drafts offline” nor the “403” message are useful _at all_. As the very minimum, Discourse would have to tell the user that the post contains a forbidden word/sequence of characters, but of course if you respect your users time you should also tell them what exactly that word was so they can easily fix it.  
But really, just don’t use this at all, at least not to filter text from posts.

[Previous page](https://community.frame.work/t/discourse-forum-somewhat-broken-i-cant-post-the-command-to-show-the-linux-kernel-version/57796.md?page=1)
