[Bug Report]: Social (Google) login ends up with 403 Forbidden #2650

Closed
opened 2026-02-05 04:42:56 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @nekromoff on GitHub (Feb 14, 2022).

Describe the Bug

Somehow this is the URL I get redirect to:
https://example.com/wiki/public/login/service/google/callback?state=5NMvoZLafloYOdKrrNrhaGe4wjM8Nt2DrLJra5rm&code=4/0AX4XfWgK7ZC9IAu5AVUJRGqzuDpgHYOlO9v0La-aAOf50cwnpa1OsVS0aoW096ZKI2JStw&scope=email%20profile%20openid%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email&authuser=0&hd=example.com&prompt=none
(yes, including spaces and weird URLs added to the original?)

Steps to Reproduce

  1. Do a Google login

Expected Behaviour

Logged in

Screenshots or Additional Context

No response

Exact BookStack Version

v21.12.5

PHP Version

8.12

Hosting Environment

Ubuntu 20.04 VPS

Originally created by @nekromoff on GitHub (Feb 14, 2022). ### Describe the Bug Somehow this is the URL I get redirect to: `https://example.com/wiki/public/login/service/google/callback?state=5NMvoZLafloYOdKrrNrhaGe4wjM8Nt2DrLJra5rm&code=4/0AX4XfWgK7ZC9IAu5AVUJRGqzuDpgHYOlO9v0La-aAOf50cwnpa1OsVS0aoW096ZKI2JStw&scope=email%20profile%20openid%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email&authuser=0&hd=example.com&prompt=none` (yes, including spaces and weird URLs added to the original?) ### Steps to Reproduce 1. Do a Google login ### Expected Behaviour Logged in ### Screenshots or Additional Context _No response_ ### Exact BookStack Version v21.12.5 ### PHP Version 8.12 ### Hosting Environment Ubuntu 20.04 VPS
OVERLORD added the 🐛 Bug label 2026-02-05 04:42:56 +03:00
Author
Owner

@nekromoff commented on GitHub (Feb 14, 2022):

After disabling mod_security2 this issue disappears.

@nekromoff commented on GitHub (Feb 14, 2022): After disabling mod_security2 this issue disappears.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2650