| 제목 | 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. AM 09:11 (22 날 ago) |
|---|
| 모더레이션 | 2026. 11. 29. PM 08:49 (21 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 445251 [SourceCodester Real Estate Property Listing App 1.0 Admin Login admin/login.php 약한 인증] |
|---|
| 포인트들 | 17 |
|---|