AppAuth-iOS
AppAuth-iOS copied to clipboard
Replace NSLog with AppAuthRequestTrace
IANS did a pen test for us on our app, which uses AppAuth. They included a low risk finding in part because of some calls to NSLog. There were some in our code and I noticed there are a couple in AppAuth.
What do we think about replacing them with calls to AppAuthRequestTrace instead?
I'm happy to submit a PR for the change.
Hello, Following security tests with the Fortify tool, I obtained the same vulnerability. Would it be possible to correct / improve this log? Thank you
Is the issue that the NSLog dumps the object?
Happy to see a PR. I'd suggest in that case having 2 lines: the same NSLog without the object included, and a statement to enable tracing to debug, and then a trace one with it included.
Here's the CWE they referenced: https://cwe.mitre.org/data/definitions/532.html
Sounds like they're issue is the presence of NSLog at all.
My assumption is if I could point our InfoSec team to the source and they could see it's innocuous and works as you describe, and I could demonstrate how the compiler settings don't include the trace, everyone would be happy.
Super minor, but will try to make time for the PR.
Any update on this? I also found this vulnerability in my Fortify scan results. The PR has been open for quite some time.