{"id":"GHSA-mr9h-45p9-fg8h","title":"Froxlor: Authenticated customers can read other customers' allowed sender aliases","summary":"Froxlor: Authenticated customers can read other customers' allowed sender aliases","severity":"medium","cvss":4.3,"cwe":["CWE-200"],"vendor":"froxlor","product":"froxlor/froxlor","ecosystem":"composer","affected":["froxlor/froxlor <= 2.3.6"],"patched":["froxlor/froxlor 2.3.7"],"published":"2026-07-02","updated":"2026-07-02","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-mr9h-45p9-fg8h","references":[{"url":"https://github.com/froxlor/froxlor/security/advisories/GHSA-mr9h-45p9-fg8h"},{"url":"https://github.com/advisories/GHSA-mr9h-45p9-fg8h"}],"tags":["ghsa","composer"],"ingestedAt":"2026-07-02T19:41:50.935Z","slug":"GHSA-mr9h-45p9-fg8h","body":"## Overview\n\n## Summary\n\nAn authenticated customer can read other customers' allowed sender aliases from Froxlor's sender-delete confirmation page when `mail.enable_allow_sender` is enabled. `customer_email.php` loads `allowed_sender` by global auto-increment `senderid` alone, so a customer can enumerate foreign sender alias IDs and make Froxlor disclose those values in the confirmation dialog for the attacker's own mailbox.\n\n## Details\n\nThe vulnerable read lives in `customer_email.php`:\n\n```php\n$senderid = Request::any('senderid', 0);\n...\n$sel_stmt = Database::prepare(\"SELECT `allowed_sender` FROM `\" . TABLE_MAIL_SENDER_ALIAS . \"` WHERE `id` = :sid\");\n$sender_data = Database::pexecute_first($sel_stmt, ['sid' => $senderid]);\n\nHTML::askYesNo('email_reallydelete_sender', $filename, [\n    'id' => $id,\n    'senderid' => $senderid,\n    'page' => $page,\n    'domainid' => $email_domainid,\n    'action' => $action\n], $idna_convert->decode($result['email_full']) . ' -> ' . $sender_data['allowed_sender']);\n```\n\nThe query does not scope `senderid` to the current customer or to the mailbox being edited. `mail_sender_aliases.id` is a global `AUTO_INCREMENT` primary key:\n\n```sql\nCREATE TABLE `mail_sender_aliases` (\n  `id` int(11) NOT NULL auto_increment,\n  `email` varchar(255) NOT NULL,\n  `allowed_sender` varchar(255) NOT NULL,\n  PRIMARY KEY  (`id`)\n)\n```\n\nThat makes sender alias IDs enumerable. A customer who owns any mailbox with sender-alias management enabled can request the delete-confirmation page for their own mailbox while supplying foreign `senderid` values. Froxlor then renders the foreign `allowed_sender` string in the confirmation prompt.\n\n## Proof of Concept\n\nVerified against Froxlor `2.3.6` on a fresh test install with `mail.enable_allow_sender=1`.\n\n1. Create two customers, `victim` and `attacker`.\n2. Give each customer one mailbox.\n3. Add a sender alias for the victim mailbox:\n\n```text\ninfo@victim.local -> leaked-sender@example.org\n```\n\n4. Log in as the attacker and request the delete-confirmation page for the attacker's own mailbox while supplying the victim's sender alias ID:\n\n```text\n/customer_email.php?page=senders&domainid=4&action=delete&id=2&senderid=1\n```\n\nObserved in the live test instance:\n\n```text\nDo you really want to delete the allowed sender info@attacker.local -> leaked-sender@example.org?\n```\n\nThe attacker-controlled mailbox identifier stayed `info@attacker.local`, but the disclosed sender alias text came from the victim-owned row identified by `senderid=1`.\n\n## Impact\n\nAn authenticated customer can enumerate global sender alias IDs and read other customers' allowed sender values. This is a cross-tenant information disclosure. It does not let the attacker delete the foreign alias because the delete action revalidates ownership.\n\n## Recommended Fix\n\nScope the sender alias lookup to the current customer and mailbox before rendering the confirmation page. The confirmation flow should fetch the sender alias through the same ownership checks used by `EmailSender::delete()`.\n\n---\n*Found by [aisafe.io](https://aisafe.io)*\n\n## Affected packages\n\n- `froxlor/froxlor <= 2.3.6`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `froxlor/froxlor 2.3.7`","depth":"sunlit","depthScore":24,"depthScoreParts":{"impact":23.7,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}