Skip to content

v1.2.1 — Security Hardening, Broken Assets & Branding Cleanup

Choose a tag to compare

@TheTractorHacker TheTractorHacker released this 16 May 00:21
· 97 commits to main since this release

FoleyTimePro v1.2.1

Patch release focused on security hardening, broken asset references, and removing all remaining D-Best/TimeSmart branding.


Security

7 admin pages were publicly accessible without authentication. Any user who knew the URL could access timesheet data, trigger deletions, or download exports without logging in.

Files fixed:

  • admin/export_summary_excel.php — Excel export now returns HTTP 403 to unauthenticated requests
  • admin/export_summary_pdf.php — same
  • admin/process_timesheet_edits.php — JSON endpoint now returns {"success":false,"message":"Unauthorized"}
  • admin/process_specific_punch_deletion.php — same
  • admin/timesheet_view.php — redirects to login
  • admin/timesheet_edit.php — redirects to login
  • admin/timesheet_add.php — redirects to login
  • admin/update_admin_table.php — allows CLI, blocks unauthenticated HTTP with 403

Broken Image Paths

FoleyTimePro.png and FoleyTimePro-favicon.png were referenced across 11 files but neither file has ever existed, causing broken favicons and logos on multiple pages.

  • FoleyTimePro.png → FoleyTimePro-logo.png
  • FoleyTimePro-favicon.png → FoleyTimePro-favicon.webp
  • D-Best-favicon.webp (in offline.html) → FoleyTimePro-favicon.webp

Pages fixed: admin/verify_2fa.php, user/verify_2fa.php, docs/privacy.php, docs/terms.php, docs/report.php, error.php, offline.html, manifest.php, api/v1/branding.php, scripts/generate_icons.php

display_errors Disabled

5 files had ini_set('display_errors', 1) enabled, which leaks PHP stack traces and internal paths to end users in production.

Files fixed: admin/enable_2fa.php, admin/time_off_requests.php, admin/test_timeoff.php, admin/export_summary_pdf.php, user/enable_2fa.php

Branding Cleanup

All remaining D-Best/TimeSmart references removed:

  • sw.js — header comment updated to FoleyTimePro
  • css/components.css — header comment updated
  • Install/run_migration.php — output string updated
  • Install/nginx/conf.d/timesmart.conf — renamed to foleytimepro.conf, all internal upstream and log references updated