製品・ソフトウェアに関する情報
s9yのSerendipityにおける検証および完全性チェックを行っていない Cookie への依存に関する脆弱性
Title s9yのSerendipityにおける検証および完全性チェックを行っていない Cookie への依存に関する脆弱性
Summary

SerendipityはPHPをベースとしたウェブログエンジンです。バージョン2.6-beta2およびそれ以前のバージョンでは、include/functions_config.inc.phpのserendipity_setCookie()関数がsetcookie()のdomainパラメータとして$_SERVER['HTTP_HOST']を検証せずに使用していました。ログイン時にHostヘッダーをMITM、リバースプロキシの誤設定、ロードバランサの操作などの手段で影響を与えられる攻撃者は、認証クッキー(セッショントークンおよび自動ログイントークンを含む)を攻撃者が制御するドメインに設定させることが可能です。これにより、セッション固定攻撃が成立し、攻撃者が制御するインフラにトークンが漏洩する可能性があり、さらに管理者が汚染されたHostヘッダーの下でログインした場合には権限昇格が可能になります。この問題はバージョン2.6.0で修正されました。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 15, 2026, midnight
Registration Date April 24, 2026, 11:42 a.m.
Last Update April 24, 2026, 11:42 a.m.
CVSS3.0 : 警告
Score 6.9
Vector CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
Affected System
s9y
Serendipity 2.6.0
Serendipity 2.6.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月24日]
  掲載
April 24, 2026, 11:42 a.m.

NVD Vulnerability Information
CVE-2026-39963
Summary

Serendipity is a PHP-powered weblog engine. In versions 2.6-beta2 and below, the serendipity_setCookie() function in include/functions_config.inc.php uses $_SERVER['HTTP_HOST'] without validation as the domain parameter of setcookie(). An attacker who can influence the Host header at login time, such as via MITM, reverse proxy misconfiguration, or load balancer manipulation, can force authentication cookies including session tokens and auto-login tokens to be scoped to an attacker-controlled domain. This enables session fixation, token leakage to attacker-controlled infrastructure, and privilege escalation if an admin logs in under a poisoned Host header. This issue has been fixed in version 2.6.0.

Publication Date April 15, 2026, 1:17 p.m.
Registration Date April 17, 2026, 4:11 a.m.
Last Update April 23, 2026, 10:58 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:s9y:serendipity:*:*:*:*:*:*:*:* 2.6.0
cpe:2.3:a:s9y:serendipity:2.6.0:beta1:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List