bunkerity / bunkerweb

🛡️ Open-source and next-generation Web Application Firewall (WAF)
https://www.bunkerweb.io
GNU Affero General Public License v3.0
6.27k stars 350 forks source link

[BUG] Recaptcha v3 antibot doesn't work #184

Closed msalmanfarisi closed 2 years ago

msalmanfarisi commented 3 years ago

Hi, I am running bunkerized-nginx v1.3.1 on Linux, I have activated ANTIBOT=recaptcha and filled the api key and secret, ANTIBOT_URI=/challenge but when I test it, error 500 occurred. here is the log : *[error] 26084#26084: 342 lua entry thread aborted: runtime error: content_by_lua(antibot-recaptcha.conf:16):6: attempt to index global 'logger' (a nil value) stack traceback: coroutine 0: content_by_lua(antibot-recaptcha.conf:16): in main chunk, client: 13.102.10.139, server: example.com, request: "GET /challenge HTTP/2.0", host: "example.com"**

Please help. thanks

fl0ppy-d1sk commented 3 years ago

Hello @msalmanfarisi,

I think that's related to a typo in the LUA code (see a0f8cbdac1a99196a006fc8b1ba5045b0a0c5b0c). Fix will be integrated into the next v1.3.2 version, thanks for your report.

fl0ppy-d1sk commented 2 years ago

Hello @msalmanfarisi,

This should be fixed in the last version. Don't hesitate to open a new issue if needed.