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

Insecure coding pattern: Missing default case in switch statements #251

Open
paser4se opened this issue Jul 8, 2020 · 0 comments
Open

Comments

@paser4se
Copy link

paser4se commented Jul 8, 2020

Greetings,

We are security researchers and we are looking for insecure coding patterns and configurations in the microservice architecture repositories. In your repository, we have found that your code does not have a default case in the switch statement. According to the Common Weakness Enumeration organization, this is a security weakness. See the link https://cwe.mitre.org/data/definitions/478.html

Source: https://github.com/CCI-MIT/XCoLab/blob/master/microservices/services/moderation-service/src/main/java/org/xcolab/service/moderation/domain/report/ReportDaoImpl.java, https://github.com/CCI-MIT/XCoLab/blob/master/microservices/clients/contest-client/src/main/java/org/xcolab/client/contest/proposals/enums/points/PointsDistributionUtil.java, https://github.com/CCI-MIT/XCoLab/blob/master/microservices/services/comment-service/src/main/java/org/xcolab/service/comment/domain/thread/ThreadDaoImpl.java and https://github.com/CCI-MIT/XCoLab/blob/master/util/entity-utils/src/main/java/org/xcolab/entity/utils/notifications/contest/ContestVoteQuestionNotification.java

Fix: Fix #250 , #252 , #253, #254

I am interested to know if you agree with the findings. Any feedback is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant