SERVER_NAME used on class.phpmailer.php #361

Closed
opened 2026-10-04 23:54:21 +02:00 by adam · 2 comments
Owner

Hi,

$_SERVER['SERVER_NAME'], must return Server_Name XXX provided by the server. But by default apache allows to return the Host Header ... UseCanonicalName Off

Apache escaped all HTML host value for $_SERVER['SERVER_NAME'], no probleme for XSS, but undesirable and dangerous for sql injections.

Hi, `$_SERVER['SERVER_NAME']`, must return `Server_Name XXX` provided by the server. But by default apache allows to return the `Host Header` ... `UseCanonicalName Off` Apache escaped all HTML host value for `$_SERVER['SERVER_NAME']`, no probleme for XSS, but undesirable and dangerous for sql injections. <!-- github-sync-id:114047880 -->
adam closed this issue 2026-10-04 23:54:21 +02:00
Author
Owner

Hi

nothing from phpMailer is used in SQL queries

you can submit the issue to https://github.com/PHPMailer/PHPMailer if you want but we won't alter the lib in Piwigo

Hi nothing from phpMailer is used in SQL queries you can submit the issue to https://github.com/PHPMailer/PHPMailer if you want but we won't alter the lib in Piwigo <!-- github-comment-id:152179837 -->
Author
Owner

Ok sorry,
i close this issue !

Ok sorry, i close this issue ! <!-- github-comment-id:152181335 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#361