@aeriajs/security
v0.0.219
Published
## Introduction
Downloads
1,095
Readme
@aeriajs/security
Introduction
This package implements common security checks.
The checks can be used separatelly, or through a function called useSecurity()
. This function returns an object with two functions:
beforeRead()
: checks to be made before reading databeforeWrite()
: checks to be made before writing data
References
checkOwnershipRead()
andcheckOwnershipWrite()
: CWE-284: Improper Access Control, CWE-639: Authorization Bypass Through User-Controlled KeycheckImmutability()
: CWE-471: Modification of Assumed-Immutable Data (MAID)checkPagination()
: CWE-770: Allocation of Resources Without Limits or ThrottlingrateLimiting()
: CWE-799: Improper Control of Interaction Frequency