# メッセージバスのエラー403

**URL:** <https://meta.discourse.org/t/403-error-on-message-bus/277637>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2023 年 9 月 3 日午前 10:32 UTC](https://meta.discourse.org/t/403-error-on-message-bus/277637 "2023-09-03T10:32:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yusufipek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yusufipek/32/328791_2.png) [@yusufipek](https://meta.discourse.org/u/yusufipek)\
**Post date:** [2023 年 9 月 3 日午後 3:08 UTC](https://meta.discourse.org/t/403-error-on-message-bus/277637/2 "2023-09-03T15:08:32Z")

</div>

問題が解決しました！ここに書き留めておきます。将来、同じ問題を抱える人がいるかもしれません。

BunkerWeb を使用していました。BunkerWeb はバックエンドアプリケーションの 1 つで Modsecurity を使用しています。明らかに、その Modsecurity core-set ルールは、メッセージバスの POST リクエストを SQL インジェクション攻撃と見なしていました。

```plaintext
ModSecurity: Warning. Matched \"Operator `Rx' with parameter `(?i:(?:^[\\W\\d]+\\s*?(?:(?:alter\\s*(?:a(?:(?:pplication\\s*rol|ggregat)e|s(?:ymmetric\\s*ke|sembl)y|u(?:thorization|dit)|vailability\\s*group)|c(?:r(?:yptographic\\s*provider|edential)|o(?:l(?:latio|um)|nve (1040 characters omitted)' against variable `ARGS_NAMES:/delete' (Value: `/delete' ) [file \"/usr/share/bunkerweb/core/modsecurity/files/coreruleset/rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf\"] [line \"426\"] [id \"942360\"] [rev \"\"] [msg \"Detects concatenated basic SQL injection and SQLLFI attempts\"] [data \"Matched Data: /delete found within ARGS_NAMES:/delete: /delete\"] [severity \"2\"] [ver \"OWASP_CRS/3.3.4\"] [maturity \"0\"] [accuracy \"0\"] [tag \"application-multi\"] [tag \"language-multi\"] [tag \"platform-multi\"] [tag \"attack-sqli\"] [tag \"paranoia-level/1\"] [tag \"OWASP_CRS\"] [tag \"capec/1000/152/248/66\"] [tag \"PCI/6.5.2\"]

```

ModSec ルールに次のように除外を追加しました。

```plaintext
SecAction "id:10000,phase:1,nolog,pass,t:none,ctl:ruleRemoveById=942360

```

これで問題は解決しました！おそらくほとんどの人には役立たないかもしれませんが、前述したように、誰かの役に立つかもしれません。それでは！

---

_[View the full topic](https://meta.discourse.org/t/403-error-on-message-bus/277637)._
