| عنوان | 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) |
|---|
| ارسال | 08/11/2026 09:11 AM (22 أيام منذ) |
|---|
| الاعتدال | 29/11/2026 08:49 PM (21 days later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 445251 [SourceCodester Real Estate Property Listing App 1.0 Admin Login admin/login.php توثيق ضعيف] |
|---|
| النقاط | 17 |
|---|