security(core): patch driver IDOR, protect employee core role, harden XLSX parser, and fix timesheet concurrency race condition

This commit is contained in:
Ray1111-aa
2026-10-28 15:37:01 +07:00
parent 48678df82b
commit 1e1286e3e2
9 changed files with 155 additions and 32 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ class SimpleXlsxImporter
$sharedStrings = [];
$sharedXmlContent = $zip->getFromName('xl/sharedStrings.xml');
if ($sharedXmlContent) {
$xml = @simplexml_load_string($sharedXmlContent);
$xml = @simplexml_load_string($sharedXmlContent, 'SimpleXMLElement', LIBXML_NONET);
if ($xml && isset($xml->si)) {
foreach ($xml->si as $si) {
if (isset($si->t)) {
@@ -112,7 +112,7 @@ class SimpleXlsxImporter
return $rows;
}
$xml = @simplexml_load_string($sheetXmlContent);
$xml = @simplexml_load_string($sheetXmlContent, 'SimpleXMLElement', LIBXML_NONET);
$zip->close();
if (!$xml || !isset($xml->sheetData->row)) {