Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Conversation

@GeekMasher
Copy link
Contributor

No description provided.

@GeekMasher GeekMasher requested a review from securingdev April 13, 2022 13:16
@GeekMasher GeekMasher requested a review from zbazztian April 14, 2022 09:37
where
key_size = aglms.getKeySize() and
key_size < aglms.minKeySize()
select aglms, "Key size " + key_size.toString() + " is to small (min: " + aglms.minKeySize() + ")"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to --> too

key_size = aglms.getKeySize() and
key_size > aglms.maxKeySize()
select aglms,
"Key size " + key_size.toString() + " is to large for algorithm (max: " + aglms.maxKeySize() + ")"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to --> too

not any(ReturnedByMockObject mock).getAnArgument() = sink.asExpr()
}

override predicate isSanitizer(DataFlow::Node node) { node instanceof Sanitizer }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not remove this line and line 25? If this was located in a .qll file, I would understand that it offers clients the ability to add things, but in a .ql file I would just leave it out. If it is ever needed, we can add it then.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, scratch that, I guess this does something, indeed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still, lines 25 and 27 look a bit strange in this setting, I would remove them and directly refer to DataFlow::ExprNode and DataFlow::BarrierGuard

*/

class Hardcoded extends Source {
Hardcoded() { this.getExpr().(IntLiteral).getValue().toInt() < 100000 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, IntegerLiteral as opposed to IntLiteral might cover more cases?

abstract DataFlow::ExprNode key();
}

class AsymmetricAlgorithm extends DataFlow::ExprNode {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this really inherit from DataFlow::ExprNode? This might be a case for an algebraic datatype.

@GeekMasher GeekMasher self-assigned this Aug 25, 2022
@aegilops
Copy link
Collaborator

Did you make Sebastian's suggested changes yet?

@GeekMasher
Copy link
Contributor Author

This PR is being closed and multiple smaller PRs will be coming in the next few days

@GeekMasher GeekMasher closed this Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants