mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-22 18:04:44 +00:00
autodiscover: use generalized error logging instead of specific to prevent user enumeration
This commit is contained in:
parent
b005803fe0
commit
5ca900749c
1 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ catch(PDOException $e) {
|
|||
exit(0);
|
||||
}
|
||||
|
||||
// Mailbox not found or not active - return error
|
||||
// Mailbox not found or not active - return generic error to prevent user enumeration
|
||||
if (empty($MailboxData)) {
|
||||
try {
|
||||
$json = json_encode(
|
||||
|
|
@ -188,7 +188,7 @@ if (empty($MailboxData)) {
|
|||
<Response>
|
||||
<Error Time="<?=date('H:i:s', $sec) . substr($usec, 0, strlen($usec) - 2);?>" Id="<?=rand(1000000000, 9999999999);?>">
|
||||
<ErrorCode>600</ErrorCode>
|
||||
<Message>Mailbox not found</Message>
|
||||
<Message>Invalid Request</Message>
|
||||
<DebugData />
|
||||
</Error>
|
||||
</Response>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue