File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,14 @@ the site.
44
44
data.
45
45
* Backend engineers should always ask themselves "who is the
46
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.
49
- * Classify sensitive and personally identifiable information (PII) that your
50
- application stores and works.
47
+ * Avoid using generic methods such as to_json() and to_string().
48
+ Instead, cherry-pick specific properties you really want to return
49
+ * Classify sensitive and personally identifiable information (PII) that
50
+ your application stores and works with, reviewing all API calls returning such
51
+ information to see if these responses pose a security issue.
51
52
* Implement a schema-based response validation mechanism as an extra layer of
52
53
security. As part of this mechanism define and enforce data returned by all API
53
- methods.
54
+ methods, including errors .
54
55
55
56
56
57
## References
You can’t perform that action at this time.
0 commit comments