Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CWE 200 (Information Exposure) - Scala Play vulnerable code #202

Merged
merged 5 commits into from Jul 11, 2016

Conversation

MaxNad
Copy link
Member

@MaxNad MaxNad commented Jul 11, 2016

Detector for information exposure in Scala Play.

If a controller returns a variable containing the result of a tainted call to the configuration manager, an attacker could use it to obtain sensitive data like the application key or the database credentials.

Taints can now be annotated with the "SENSITIVE_DATA" tag to allow a better scalability of the detector.

I also added multiple taint definitions for data structures in Scala, this will facilitate the development of injection based detectors in Scala Play.

@h3xstream
Copy link
Member

Cool idea.

This include a huge block of method behavior (method summaries) for Scala string manipulation. This is a very good thing for all taint related analysis in Scala.

(I am reviewing the changes)

@h3xstream h3xstream added the enhancement New feature or improvement to existing detector. label Jul 11, 2016
@h3xstream h3xstream added this to the version-1.5.0 milestone Jul 11, 2016
import java.util.Map;
import java.util.Set;

import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please configure your IDE to avoid wildcards. (Minor issue)

For IntelliJ: http://stackoverflow.com/a/3348855/89769

@h3xstream
Copy link
Member

Great contribution !

@MaxNad I have left 4 comments. If you can push the 4 small changes, I will merge the change.

@MaxNad
Copy link
Member Author

MaxNad commented Jul 11, 2016

I have pushed the modifications.

Thanks for the comments.

@h3xstream
Copy link
Member

Perfect! Thanks again.

I will wait for Travis-CI before merging.

@h3xstream h3xstream merged commit 7b905d8 into find-sec-bugs:master Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing detector.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants