原始 OSV JSON{
"id": "GHSA-58fg-62fg-3fcj",
"aliases": [
"CVE-2026-48488"
],
"details": "### Summary\n\nAttachment passwords are hashed using SHA-1, a cryptographically broken algorithm. SHA-1 has been vulnerable to collision attacks since 2017 (SHAttered).\n\n### Details\n\n**Affected File** : `phpmyfaq/src/phpMyFAQ/Attachment/AbstractAttachment.php`\n\n<img width=\"810\" height=\"427\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6499a008-3ece-4291-8296-f1d3303ba35c\" />\n\n\n### Impact\n\n- An attacker can generate SHA-1 collisions to bypass attachment protection\n- Risk of password cracking if database is compromised\n- Estimated cracking time: < 1 minute for standard attachment\n\n### Solution\n\n**Use bcrypt:**\n\n```\npublic function setPassword(string $password): void\n{\n $this->passwordHash = password_hash($password, PASSWORD_BCRYPT);\n}\n\npublic function verifyPassword(string $plainPassword): bool\n{\n return password_verify($plainPassword, $this->passwordHash);\n}\n```",
"summary": "phpMyFAQ has Weak Cryptography - SHA1 for Password Hashing",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.1.4"
}
]
}
],
"package": {
"name": "thorsten/phpmyfaq",
"ecosystem": "Packagist"
},
"database_specific": {
"last_known_affected_version_range": "<= 4.1.3"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.1.4"
}
]
}
],
"package": {
"name": "phpmyfaq/phpmyfaq",
"ecosystem": "Packagist"
},
"database_specific": {
"last_known_affected_version_range": "<= 4.1.3"
}
}
],
"modified": "2026-06-23T22:02:25Z",
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
}
],
"published": "2026-06-23T22:02:25Z",
"references": [
{
"url": "https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-58fg-62fg-3fcj",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-48488",
"type": "ADVISORY"
},
{
"url": "https://github.com/thorsten/phpMyFAQ/commit/1aa9be6f8a2fa5c527c983826205229fc3129718",
"type": "WEB"
},
{
"url": "https://github.com/thorsten/phpMyFAQ",
"type": "PACKAGE"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-328"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2026-06-08T16:16:43Z",
"github_reviewed_at": "2026-06-23T22:02:25Z"
}
}