The issue arises from the lack of a CSRF check when saving settings, allowing an attacker to manipulate a logged-in admin into changing them via a CSRF attack. Additionally, the lack of escaping when outputting settings can lead to Stored Cross-Site Scripting issues.