You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Listeners/EndVulnsScanListener.php
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -43,32 +43,34 @@ public static function sendEmailReport(YnhTrial $trial): void
43
43
return;
44
44
}
45
45
46
-
$query = "SELECT DISTINCT concat(login, '@', login_email_domain) AS email, concat(url_scheme, '://', url_subdomain, '.', url_domain) AS websiteFROM dumps_login_email_domain WHERE login_email_domain = '{$assets->first()->tld}' ORDER BY email ASC";
46
+
$query = "SELECT DISTINCT concat(login, '@', login_email_domain) AS email, concat(url_scheme, '://', url_subdomain, '.', url_domain) AS website, password FROM dumps_login_email_domain WHERE login_email_domain = '{$assets->first()->tld}' ORDER BY email, website ASC";
if (preg_match("/(?i)\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|(([^\s()<>]+|(([^\s()<>]+)))*))+(?:(([^\s()<>]+|(([^\s()<>]+)))*)|[^\s`!()[]{};:'\".,<>?«»“”‘’]))/", $credentials['website'])) {
61
+
// if (preg_match("/(?i)\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|(([^\s()<>]+|(([^\s()<>]+)))*))+(?:(([^\s()<>]+|(([^\s()<>]+)))*)|[^\s`!()[]{};:'\".,<>?«»“”‘’]))/", $credentials['website'])) {
62
+
if (filter_var($credentials['website'], FILTER_VALIDATE_URL)) {
$msgLeaks = $leaks->isNotEmpty() ? "<li>J'ai trouvé <b>{$leaks->count()}</b> identifiants fuités ou compromis appartenant au domaine {$assets->first()->tld}.</li>" : "";
72
74
73
75
unset($output);
74
76
@@ -120,10 +122,10 @@ public static function sendEmailReport(YnhTrial $trial): void
120
122
})->join("");
121
123
122
124
if ($leaks->isNotEmpty()) {
123
-
$website = $leaks->map(fn(array$leak) => "<li>L'identifiant <b>{$leak['email']}</b> donnant accès à <b>{$leak['website']}</b> a été compromis.</li>")->join("\n");
125
+
$website = $leaks->map(fn(array$leak) => "<li>L'identifiant <b>{$leak['email']}</b> donnant accès à <b>{$leak['website']}</b> a été fuité ou compromis.</li>")->join("\n");
124
126
$answer .= "
125
-
<h3>Identifiants compromis</h3>
126
-
<p>Cywise surveille également les fuites de données !<p>
127
+
<h3>Identifiants fuités ou compromis</h3>
128
+
<p>Cywise surveille également les fuites de données et compromissions !<p>
127
129
<ul>
128
130
{$website}
129
131
</ul>
@@ -217,6 +219,14 @@ public static function sendEmail(string $from, string $to, string $subject, stri
Copy file name to clipboardExpand all lines: app/View/Components/Timeline.php
+16-6Lines changed: 16 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -330,18 +330,18 @@ private function leaks(User $user): array
330
330
->unique()
331
331
->join("','") . "'";
332
332
333
-
$query = "SELECT DISTINCT concat(login, '@', login_email_domain) AS email, concat(url_scheme, '://', url_subdomain, '.', url_domain) AS websiteFROM dumps_login_email_domain WHERE login_email_domain IN ({$tlds}) ORDER BY email ASC";
333
+
$query = "SELECT DISTINCT concat(login, '@', login_email_domain) AS email, concat(url_scheme, '://', url_subdomain, '.', url_domain) AS website, password FROM dumps_login_email_domain WHERE login_email_domain IN ({$tlds}) ORDER BY email, website ASC";
<span>Nous avons trouvé <b>{{count(json_decode($leak->attributes()['credentials'])) }} identifiants compromis</b>. Si aucune action n'a encore été entreprise, demandez aux utilisateurs concernés de modifier leur mot de passe.</span>
69
+
<span>Nous avons trouvé <b>{{count(json_decode($leak->attributes()['credentials'])) }} identifiants fuités ou compromis</b>. Si aucune action n'a encore été entreprise, demandez aux utilisateurs concernés de modifier leur mot de passe.</span>
0 commit comments