File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,19 @@ the site.
39
39
40
40
## How To Prevent
41
41
42
- * Never rely on the client side to perform sensitive data filtering .
42
+ * Never rely on the client side to filter sensitive data.
43
43
* Review the responses from the API to make sure they contain only legitimate
44
44
data.
45
- * Use generis methods like "to_json" and "to_string" from the ORM / Model level
46
- carefully. Backend engineers should always ask themselves "who is the consumer
47
- of the returned data?"
45
+ * Backend engineers should always ask themselves "who is the
46
+ consumer of the data?" before exposing a new API endpoint.
47
+ * Use generic methods like "to_json" and "to_string" from the ORM / Model level
48
+ very carefully.
48
49
* Classify sensitive and personally identifiable information (PII) that your
49
50
application stores and works.
51
+ * Implement a schema-based response validation mechanism as an extra layer of
52
+ security. As part of this mechanism define and enforce data returned by all API
53
+ methods.
54
+
50
55
51
56
## References
52
57
You can’t perform that action at this time.
0 commit comments