Summary: public Taint errors are complex, and each type requires its own specialized recommendation.
Reviewed By: jeremydubreil
Differential Revision: D3025921
fb-gh-sync-id: 8d7b45b
shipit-source-id: 8d7b45b
master
Sam Blackshear9 years agocommitted byFacebook Github Bot 0
"Value %s could be insecure (tainted) due to call to function %s %s %s %s. Function %s %s"
expr_str
tainting_fun
"and is reaching sensitive function"
sensitive_fun
(at_linetagsloc)
sensitive_fun
"requires its input to be verified or sanitized."in
letdescription=
matchtaint_kindwith
|Sil.UnverifiedSSLSocket->
Format.sprintf
"The hostname of SSL socket `%s` (returned from %s) has not been verified! Reading from the socket via the call to %s %s is dangerous. You should verify the hostname of the socket using a HostnameVerifier before reading; otherwise, you may be vulnerable to a man-in-the-middle attack."
expr_str
(format_methodtainting_fun)
(format_methodsensitive_fun)
(at_linetagsloc)
|Sil.SharedPreferencesData->
Format.sprintf
"`%s` holds sensitive data read from a SharedPreferences object (via call to %s). This data may leak via the call to %s %s."
expr_str
(format_methodtainting_fun)
(format_methodsensitive_fun)
(at_linetagsloc)
|Sil.Unknown->
Format.sprintf
"Value `%s` could be insecure (tainted) due to call to function %s %s %s %s. Function %s %s"
expr_str
(format_methodtainting_fun)
"and is reaching sensitive function"
(format_methodsensitive_fun)
(at_linetagsloc)
(format_methodsensitive_fun)
"requires its input to be verified or sanitized."in