Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2023-1759: fix: corrected sanitazing the string · thorsten/phpMyFAQ@ecbd810

Cross-site Scripting (XSS) - Stored in GitHub repository thorsten/phpmyfaq prior to 3.1.12.

CVE
#xss#git#php#auth

@@ -43,9 +43,9 @@
if ($user->perm->hasPermission($user->getUserId(), ‘add_faq’)) { // FAQ data $dateStart = Filter::filterInput(INPUT_POST, 'dateStart’, FILTER_UNSAFE_RAW); $dateEnd = Filter::filterInput(INPUT_POST, 'dateEnd’, FILTER_UNSAFE_RAW); $question = Filter::filterInput(INPUT_POST, 'question’, FILTER_UNSAFE_RAW); $dateStart = Filter::filterInput(INPUT_POST, 'dateStart’, FILTER_SANITIZE_SPECIAL_CHARS); $dateEnd = Filter::filterInput(INPUT_POST, 'dateEnd’, FILTER_SANITIZE_SPECIAL_CHARS); $question = Filter::filterInput(INPUT_POST, 'question’, FILTER_SANITIZE_SPECIAL_CHARS); $categories = Filter::filterInputArray( INPUT_POST, [ @@ -55,25 +55,25 @@ ], ] ); $recordLang = Filter::filterInput(INPUT_POST, 'lang’, FILTER_UNSAFE_RAW); $tags = Filter::filterInput(INPUT_POST, 'tags’, FILTER_UNSAFE_RAW); $active = Filter::filterInput(INPUT_POST, 'active’, FILTER_UNSAFE_RAW); $sticky = Filter::filterInput(INPUT_POST, 'sticky’, FILTER_UNSAFE_RAW); $recordLang = Filter::filterInput(INPUT_POST, 'lang’, FILTER_SANITIZE_SPECIAL_CHARS); $tags = Filter::filterInput(INPUT_POST, 'tags’, FILTER_SANITIZE_SPECIAL_CHARS); $active = Filter::filterInput(INPUT_POST, 'active’, FILTER_SANITIZE_SPECIAL_CHARS); $sticky = Filter::filterInput(INPUT_POST, 'sticky’, FILTER_SANITIZE_SPECIAL_CHARS); $content = Filter::filterInput(INPUT_POST, 'answer’, FILTER_SANITIZE_SPECIAL_CHARS); $keywords = Filter::filterInput(INPUT_POST, 'keywords’, FILTER_UNSAFE_RAW); $author = Filter::filterInput(INPUT_POST, 'author’, FILTER_UNSAFE_RAW); $keywords = Filter::filterInput(INPUT_POST, 'keywords’, FILTER_SANITIZE_SPECIAL_CHARS); $author = Filter::filterInput(INPUT_POST, 'author’, FILTER_SANITIZE_SPECIAL_CHARS); $email = Filter::filterInput(INPUT_POST, 'email’, FILTER_VALIDATE_EMAIL); $comment = Filter::filterInput(INPUT_POST, 'comment’, FILTER_UNSAFE_RAW); $comment = Filter::filterInput(INPUT_POST, 'comment’, FILTER_SANITIZE_SPECIAL_CHARS); $recordId = Filter::filterInput(INPUT_POST, 'id’, FILTER_VALIDATE_INT); $solutionId = Filter::filterInput(INPUT_POST, 'solution_id’, FILTER_VALIDATE_INT); $revisionId = Filter::filterInput(INPUT_POST, 'revision_id’, FILTER_VALIDATE_INT); $changed = Filter::filterInput(INPUT_POST, 'changed’, FILTER_UNSAFE_RAW); $date = Filter::filterInput(INPUT_POST, 'date’, FILTER_UNSAFE_RAW); $notes = Filter::filterInput(INPUT_POST, 'notes’, FILTER_UNSAFE_RAW); $changed = Filter::filterInput(INPUT_POST, 'changed’, FILTER_SANITIZE_SPECIAL_CHARS); $date = Filter::filterInput(INPUT_POST, 'date’, FILTER_SANITIZE_SPECIAL_CHARS); $notes = Filter::filterInput(INPUT_POST, 'notes’, FILTER_SANITIZE_SPECIAL_CHARS);
// Permissions $permissions = []; if (‘all’ === Filter::filterInput(INPUT_POST, 'userpermission’, FILTER_UNSAFE_RAW)) { if (‘all’ === Filter::filterInput(INPUT_POST, 'userpermission’, FILTER_SANITIZE_SPECIAL_CHARS)) { $permissions += [ ‘restricted_user’ => [ -1, @@ -87,7 +87,7 @@ ]; }
if (‘all’ === Filter::filterInput(INPUT_POST, 'grouppermission’, FILTER_UNSAFE_RAW)) { if (‘all’ === Filter::filterInput(INPUT_POST, 'grouppermission’, FILTER_SANITIZE_SPECIAL_CHARS)) { $permissions += [ ‘restricted_groups’ => [ -1, @@ -203,7 +203,7 @@ // notify the user who added the question try { $notifyEmail = Filter::filterInput(INPUT_POST, 'notifyEmail’, FILTER_SANITIZE_EMAIL); $notifyUser = Filter::filterInput(INPUT_POST, 'notifyUser’, FILTER_UNSAFE_RAW); $notifyUser = Filter::filterInput(INPUT_POST, 'notifyUser’, FILTER_SANITIZE_SPECIAL_CHARS); $notification->sendOpenQuestionAnswered($notifyEmail, $notifyUser, $oLink->toString()); } catch (Exception $e) { printf('<p class="alert alert-warning">%s</p>’, $e->getMessage());

Related news

GHSA-4wfc-ghv5-2v7j: phpMyFAQ Stored Cross-site Scripting vulnerability

Cross-site Scripting (XSS) - Stored in GitHub repository thorsten/phpmyfaq prior to 3.1.12.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907