The issue arises from insufficient restrictions on where the IP Address information is being retrieved for request logging and login restrictions. This allows attackers to supply the `X-Forwarded-For` header with a different IP Address that will be logged, potentially bypassing settings that block specific IP addresses or countries from logging in.