Skip to content

Conversation

@CTY-git
Copy link

@CTY-git CTY-git commented May 2, 2024

This pull request from patched fixes 4 issues.


  • File changed: docker-compose.yml
    (docker-compose.yml:1:24)[https://github.com/PatchWork AutoFix #4/files#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3L1-L24] Added 'security_opt' to the redis service to prevent privilege escalation and set 'read_only' to true.

@CTY-git CTY-git force-pushed the autofix-llama3-8b branch from 432a269 to 5857edc Compare May 7, 2024 06:41
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
D Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint


def check_password(self, password: str):
return self.pwd_hash == md5(password.encode('utf-8')).hexdigest()
return scrypt(password.encode('utf-8')).encode(hex=True) == self.pwd_hash

Check failure

Code scanning / SonarCloud

Password hashing functions should use an unpredictable salt

<!--SONAR_ISSUE_KEY:AY9RybLVInusiQv1AtMl-->Add an unpredictable salt value to this hash. <p>See more on <a href="https://sonarcloud.io/project/issues?id=patched-codes_dvpwa&issues=AY9RybLVInusiQv1AtMl&open=AY9RybLVInusiQv1AtMl&pullRequest=4">SonarCloud</a></p>
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 this pull request may close these issues.

2 participants