Exploit database

GH-7feacea856188eafd49a6762828c436f

chocapikk/cve-2023-35885

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-35885

4 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files27
chocapikk/cve-2023-35885Revision 78ece7c3f53e

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/Entity/Manager/NotificationManager.php

PHP · 699 bytes
<?php

namespace App\Entity\Manager;

use App\Entity\Notification;

class NotificationManager extends BaseManager
{
    public function updateNotification(Notification $notification, $andFlush = true)
    {
        $hash = $notification->hash();
        $existingNotifications = $this->findAll(['hash' => $hash, 'isRead' => false], [], 5);
        if (0 == count($existingNotifications)) {
            $this->entityManager->persist($notification);
            if (true === $andFlush) {
                $this->entityManager->flush();
            }
        }
    }

    public function getNumberOfUnreadNotifications()
    {
        return $this->repository->getNumberOfUnreadNotifications();
    }
}