Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65d01f5

Browse files
Alvaro Muñozpwntester
authored andcommitted
address review comments
1 parent f85778e commit 65d01f5

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

java/ql/src/experimental/Security/CWE/CWE-094/InsecureBeanValidation.qhelp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
<qhelp>
55

66
<overview>
7-
<p>Bean validation custom constraint error messages support different types of interpolation,
8-
including <a href="https://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html/chapter-message-interpolation.html#section-interpolation-with-message-expressions">Java EL expressions</a>.
9-
Controlling part of the message template being passed to `ConstraintValidatorContext.buildConstraintViolationWithTemplate()`
10-
argument will lead to arbitrary Java code execution. Unfortunately, it is common that validated (and therefore, normally
11-
untrusted) bean properties flow into the custom error message.</p>
7+
<p>Bean validation custom constraint error messages support different types of interpolation, including [Java EL expressions](https://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html/chapter-message-interpolation.html#section-interpolation-with-message-expressions).
8+
Controlling part of the error message template being passed to `ConstraintValidatorContext.buildConstraintViolationWithTemplate()` argument will lead to arbitrary Java code execution.
9+
Unfortunately, it is common that validated (and therefore, normally untrusted) bean properties flow into the custom error message.</p>
1210
</overview>
1311

1412
<recommendation>

0 commit comments

Comments
 (0)