fix: security update#1544
Merged
Merged
Conversation
Contributor
|
OK |
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.
PR Security Update - Dependency Vulnerability Patches
Deskripsi
Pembaruan keamanan untuk memperbaiki kerentanan kritis pada dependency PHP dan JavaScript yang digunakan dalam OpenDK. Perubahan ini mencakup upgrade versi pada package yang memiliki CVE yang telah dipublikasikan.
Why: Beberapa dependency yang digunakan memiliki kerentanan keamanan yang dapat dieksploitasi untuk Remote Code Execution (RCE), Server-Side Request Forgery (SSRF), Cross-Site Scripting (XSS), Code Injection, dan Denial of Service (DoS).
Perubahan yang Dilakukan
1. PHP Dependencies (
composer.lock)phpoffice/phpspreadsheetCVE yang diperbaiki:
phar://,ftp://,ssh2.sftp://) padaIOFactory::load(). Attacker dapat melakukan deserialization untrusted data dan eksekusi kode arbitrer.@text placeholder.2. JavaScript Dependencies (
package-lock.json)lodashpostcss</style>brace-expansionfast-uriCVE yang diperbaiki:
lodashvia_.templateimports key names. Incomplete fix dari CVE-2021-23337._.unsetdan_.omit.</style>dalam CSS stringify output.Alasan Perubahan
Branch
fix/update_securitymerupakan akumulasi dari beberapa merge PR yang berfokus pada perbaikan keamanan:WAF Blocking Prevention - Perubahan method DataTables dari GET ke POST pada berbagai menu (Kependudukan, Kecamatan, Finansial, Kesehatan, Program Bantuan, Pengaturan, SIKEMA) untuk mencegah blocking oleh Web Application Firewall.
Permission System - Penerapan sistem permission berbasis Spatie untuk kontrol akses yang lebih granular.
Dependency Security Updates - Upgrade package yang memiliki kerentanan keamanan yang telah dipublikasikan sebagai CVE.
Dampak Perubahan
Positive Impact
Risk Assessment
Files Changed
Steps to Reproduce (Testing)
1. Install Dependencies
2. Verify Package Versions
composer show phpoffice/phpspreadsheet | grep versions npm list lodash postcss3. Test Spreadsheet Upload/Export
4. Test Asset Compilation
Testing Checklist
Security Testing
composer show phpoffice/phpspreadsheetnpm list lodashnpm list postcssnpm audit- pastikan tidak ada known vulnerabilitiescomposer audit- pastikan tidak ada known vulnerabilitiesFunctional Testing
npm run build- pastikan CSS/JS ter-compileRegression Testing
Related Issue
fix/update_securitydevReferensi CVE
Checklist PR
Screenshots