[security]KVE-2026-0676 폼메일 발신자 위장 및 Rate Limit 우회 수정

비회원 폼메일 발송 시 From 헤더를 관리자 이메일로 고정하고 사용자 입력은 Reply-To로 설정
formmail_send.php에 세션 기반 발송 횟수 제한 추가 (직접 POST 우회 방지)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thisgunandClaude Opus 4.6 committed 2026-04-16 03:18:19 +00:00
1 parent 614b040960
commit df940f8168
2 files changed
+23 -4

No files matched your search

+3 -1
View File
@@ -5,7 +5,7 @@ include_once(G5_PHPMAILER_PATH.'/PHPMailerAutoload.php');
// 메일 보내기 (파일 여러개 첨부 가능)
// type : text=0, html=1, text+html=2
function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file="", $cc="", $bcc="")
function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file="", $cc="", $bcc="", $reply_to="")
{
global $config;
global $g5;
@@ -43,6 +43,8 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file="", $cc=
$mail->addCC($cc);
if ($bcc)
$mail->addBCC($bcc);
if ($reply_to)
$mail->addReplyTo($reply_to);
//print_r2($file); exit;
if ($file != "") {
foreach ($file as $f) {