提交 #1081185: SourceCodester Real Estate Property Listing App 1.0 Credentials Management信息

标题SourceCodester Real Estate Property Listing App 1.0 Credentials Management
描述Product: Real Estate Property Listing App v1.0 (SourceCodester project ID 18526, published 2025-11-27). https://www.sourcecodester.com/php/18526/real-estate-property-listing-app-using-php-and-mysql-source-code.html Use of Hard-coded Credentials (CWE-798) in the administrative login: admin/login.php lines 5-6 hardcode $valid_password = 'admin123'. Worse, the login page HTML (lines 75-80) DISPLAYS the credentials publicly in the page markup, so any visitor can read the admin username/password directly from the unauthenticated login page. Every deployment of this download keeps these factory credentials active - there is no forced change, no installer-generated password. Impact: full administrative takeover of any internet-facing installation (manage/delete all property listings and inquiries, arbitrary file upload - see the separate unrestricted-upload submission which turns this factory credential into unauthenticated remote code execution). Verified on a local deployment: curl -i -X POST -d "username=admin&password=admin123" .../admin/login.php -> HTTP 302 with an authenticated admin session cookie. curl .../admin/login.php (unauthenticated GET) -> the HTML contains the credential hint text with admin/admin123. Suggested fix: remove hardcoded credentials, require an installer step that sets the admin password, never display credentials on the login page. References: sourcecodester.com ID 18526. No prior advisory for this product (checked NVD/Exploit-DB/VulDB).
用户
 kingkingqc (UID 102826)
提交2026-11-08 09時11分 (22 日前)
管理2026-11-29 20時49分 (21 days later)
状态已接受
VulDB条目445251 [SourceCodester Real Estate Property Listing App 1.0 Admin Login admin/login.php 弱身份验证]
积分17

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!