| 标题 | Spotweb 1.5.8 Open Redirect |
|---|
| 描述 | A vulnerability was found in Spotweb. The issue affects the login functionality in templates/*/login.inc.php. The loginform[http_referer] POST parameter is passed directly to the redirect() function in lib/SpotTemplateHelper.php without any URL validation after successful authentication. This allows attackers to redirect authenticated users to arbitrary external URLs including phishing sites.
Vulnerable code (templates/we1rdo/login.inc.php lines 7-8):
if (isset($data['performredirect']) && ($result->isSuccess())) {
$tplHelper->redirect($loginform['http_referer']);
}
The redirect() function (lib/SpotTemplateHelper.php lines 1586-1589):
public function redirect($url)
{
header('Location: '.$url);
}
Attack: Attacker creates form with loginform[http_referer]=https://evil.com. After victim logs in with valid credentials, they are redirected to attacker's site.
Impact: Phishing, credential theft, session hijacking.
CVSS 3.1: 6.1 (Medium) - AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE-601: URL Redirection to Untrusted Site |
|---|
| 来源 | ⚠️ https://github.com/0p5cur/Spotweb-Open-Redirect |
|---|
| 用户 | 0p5cur (UID 102559) |
|---|
| 提交 | 2026-10-27 21時27分 (29 日前) |
|---|
| 管理 | 2026-11-25 17時31分 (29 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 443921 [Spotweb 直到 1.5.8 Login SpotTemplateHelper.php redirect http_referer Redirect] |
|---|
| 积分 | 20 |
|---|