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

Test oath service's openssl function usage for safe useage #501

Open
phavekes opened this issue Dec 1, 2024 · 0 comments
Open

Test oath service's openssl function usage for safe useage #501

phavekes opened this issue Dec 1, 2024 · 0 comments
Labels

Comments

@phavekes
Copy link
Member

phavekes commented Dec 1, 2024

This issue is imported from pivotal - Originaly created at Nov 16, 2021 by Michiel Kodde

Several (sometimes treacherous) openssl functions are used in the oath-service-php component. As the return type of openssl functions is not always predictable, we should check usage of these functions as a defence in depth measure. Currently the following usages where found:

            src/oath-service-php/src/SURFnet/OATHBundle/Services/OATH  (1 usage found)
                RandomGenerator.php  (1 usage found)
                    32 return openssl_random_pseudo_bytes($length);
            src/oath-service-php/src/SURFnet/OATHBundle/Services/UserStorage/Encryption  (6 usages found)
                Openssl.php  (6 usages found)
                    47 $ivsize = openssl_cipher_iv_length($this->method);
                    48 $iv = openssl_random_pseudo_bytes($ivsize);
                    50 $ciphertext = openssl_encrypt(
                    54 OPENSSL_RAW_DATA,
                    72 return openssl_decrypt(
                    76 OPENSSL_RAW_DATA,
@phavekes phavekes self-assigned this Dec 1, 2024
@phavekes phavekes added this to Stepup Dec 1, 2024
@github-project-automation github-project-automation bot moved this to New in Stepup Dec 1, 2024
@phavekes phavekes removed their assignment Dec 1, 2024
@phavekes phavekes changed the title Test oath service\'s openssl function usage for safe useage Test oath service's openssl function usage for safe useage Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New
Development

No branches or pull requests

1 participant