Headline
CVE-2023-1875: fix: added missing conversion to HTML entities · thorsten/phpMyFAQ@dcf7dd4
Cross-site Scripting (XSS) - Stored in GitHub repository thorsten/phpmyfaq prior to 3.1.12.
@@ -114,9 +114,9 @@ $message .= sprintf('<p class="alert alert-danger">%s</p>’, $PMF_LANG[‘ad_user_error_noId’]); } else { $userData = []; $userData[‘display_name’] = Filter::filterInput(INPUT_POST, 'display_name’, FILTER_UNSAFE_RAW); $userData[‘display_name’] = Filter::filterInput(INPUT_POST, 'display_name’, FILTER_SANITIZE_SPECIAL_CHARS); $userData[‘email’] = Filter::filterInput(INPUT_POST, 'email’, FILTER_VALIDATE_EMAIL); $userData[‘last_modified’] = Filter::filterInput(INPUT_POST, 'last_modified’, FILTER_UNSAFE_RAW); $userData[‘last_modified’] = Filter::filterInput(INPUT_POST, 'last_modified’, FILTER_SANITIZE_SPECIAL_CHARS); $userStatus = Filter::filterInput(INPUT_POST, 'user_status’, FILTER_UNSAFE_RAW, $defaultUserStatus); $isSuperAdmin = Filter::filterInput(INPUT_POST, 'is_superadmin’, FILTER_UNSAFE_RAW); $isSuperAdmin = $isSuperAdmin === 'on’;
Related news
Cross-site Scripting (XSS) - Stored in GitHub repository thorsten/phpmyfaq prior to 3.1.12.