CRITICAL SECURITY FIXES - Refactor File Upload Controllers#1441
Merged
vickyrolanda merged 5 commits intodevfrom Feb 8, 2026
Merged
CRITICAL SECURITY FIXES - Refactor File Upload Controllers#1441vickyrolanda merged 5 commits intodevfrom
vickyrolanda merged 5 commits intodevfrom
Conversation
This was referenced Feb 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deskripsi
1. CRITICAL SECURITY FIXES - Refactor File Upload Controllers (ca8c413)
FileUploadServicedaripada metode upload langsungapp/Http/Controllers/Api/PembangunanController.phpapp/Http/Controllers/Api/PendudukController.phpapp/Http/Controllers/Api/ProgamBantuanController.phpapp/Http/Controllers/Api/SuratController.phpapp/Http/Controllers/BackEnd/ThemesController.phpapp/Http/Controllers/Data/AdminKomplainController.phpapp/Http/Controllers/Data/ArsipController.phpapp/Http/Controllers/Data/LaporanApbdesController.phpapp/Http/Controllers/Data/LaporanPendudukController.phpapp/Http/Controllers/Data/PendudukController.phpapp/Http/Controllers/Data/ProfilController.phpapp/Http/Controllers/Data/ProgramBantuanController.phpapp/Http/Controllers/FrontEnd/SistemKomplainController.phpapp/Http/Controllers/Setting/PengaturanDatabaseController.phpapp/Http/Controllers/Surat/PermohonanController.phpapp/Repositories/KomplainApiRepository.phpapp/Services/FileUploadService.phptests/Feature/Security/FileUploadSecurityTest.php2. CRITICAL SECURITY FIXES - Buat FileUploadService (6f5adc2)
FileUploadServiceuntuk menangani upload file secara amanSecureFileUploaduntuk memfilter file berbahayaFileUploadServicePerubahan Spesifik
FileUploadService
Layanan ini menyediakan fitur keamanan berikut:
Penggunaan di Controller
$file->storeAs()langsung digantikan denganFileUploadServiceAturan Validasi Aman
SecureFileUploadrule untuk validasi upload filePengujian Keamanan
FileUploadSecurityTest.phpuntuk menguji serangan upload fileFileUploadServiceTest.phpuntuk menguji fungsi layananTujuan Perubahan
Perubahan ini bertujuan untuk:
Dampak
Masalah Terkait (Related Issue)
Langkah untuk mereproduksi (Steps to Reproduce)
Daftar Periksa (Checklist)
Tangkapan Layar (Screenshot)