Skip to content

Commit 20b011e

Browse files
authored
Update 0xa3-excessive-data-exposure.md
1 parent 038610c commit 20b011e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

2019/en/src/0xa3-excessive-data-exposure.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,19 @@ the site.
3939

4040
## How To Prevent
4141

42-
* Never rely on the client side to perform sensitive data filtering.
42+
* Never rely on the client side to filter sensitive data.
4343
* Review the responses from the API to make sure they contain only legitimate
4444
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.
4849
* Classify sensitive and personally identifiable information (PII) that your
4950
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+
5055

5156
## References
5257

0 commit comments

Comments
 (0)