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

Usage of ECB block cipher mode of operation #52

Open
nukithelegend opened this issue Jul 2, 2020 · 1 comment
Open

Usage of ECB block cipher mode of operation #52

nukithelegend opened this issue Jul 2, 2020 · 1 comment

Comments

@nukithelegend
Copy link

nukithelegend commented Jul 2, 2020

ECB is an older, less secure mode of operation. This is used in

AbstractRSA.java line 37:

        try {
            return Cipher.getInstance("RSA/ECB/PKCS1Padding");
        } catch (Exception e) {
            return null;
        }
    }

Can this be changed to something more secure, like GCM?

@Fer-Picu
Copy link

i affected for this issue too
we found a vulnerability OWASP Top 10 report:
in 'RSA / ECB / PKCS1Padding' en 'com / crypho / plugins / RSA.java' :
path:
https://github.com/mibrito707/cordova-plugin-secure-storage-echo/blob/master/src/android/RSA.
java
we suggest replace ECB for GSM.
thanks!

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

No branches or pull requests

2 participants