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

For loops leak secrets #30

Closed
Brownies opened this issue Aug 29, 2024 · 1 comment
Closed

For loops leak secrets #30

Brownies opened this issue Aug 29, 2024 · 1 comment

Comments

@Brownies
Copy link

The "Iteration" element leaks secrets if the iterable has a string representation of its contents. Minimal example:

*** Settings ***
Library         CryptoLibrary    password=password    variable_decryption=True    key_path=${CURDIR}

*** Variables ***
${secret}    crypt:BBsNlqXK9n/b8khTf02uJu0dehTe32DXUwbPMQqAYlMvu+2uCw3/RJKPjXDMcUhmyVfn2wh3Z97/frezmmstEOwg

*** Test Cases ***
Sample
    VAR    @{list}    ${secret}
    FOR    ${element}    IN    @{list}
        No Operation
    END

This results in
log
Private key for decrypting the "secret": private_key.json

Tested with robotframework 7.0.1 and robotframework-crypto 0.3.0

@Snooz82
Copy link
Owner

Snooz82 commented Dec 7, 2024

Is fixed in 0.4.2

@Snooz82 Snooz82 closed this as completed Dec 7, 2024
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

Successfully merging a pull request may close this issue.

2 participants