Headline
CVE-2023-0310: fix: added missing conversion to HTML entities · thorsten/phpMyFAQ@53099a9
Cross-site Scripting (XSS) - Stored in GitHub repository thorsten/phpmyfaq prior to 3.1.10.
@@ -20,6 +20,7 @@
use phpMyFAQ\Date;
use phpMyFAQ\Entity\CommentType;
use phpMyFAQ\Faq;
use phpMyFAQ\Strings;
if (!defined(‘IS_VALID_PHPMYFAQ’)) {
http_response_code(400);
@@ -73,7 +74,7 @@
<td>
<span style="font-weight: bold;">
<a href="mailto:<?= $faqComment->getEmail() ?>">
<?= $faqComment->getUsername() ?>
<?= Strings::htmlentities($faqComment->getUsername()) ?>
</a> |
<?= $date->format(date('Y-m-d H:i’, $faqComment->getDate())) ?> |
<a href="<?php printf(
@@ -84,8 +85,8 @@
) ?>">
<?= $faq->getRecordTitle($faqComment->getRecordId()) ?>
</a>
</span><br/>
<?= $faqComment->getComment() ?>
</span><br>
<?= Strings::htmlentities($faqComment->getComment()) ?>
</td>
</tr>
<?php
Related news
Cross-site Scripting (XSS) - Stored in GitHub repository thorsten/phpmyfaq prior to 3.1.10.