ECA Expression Language
The module does not properly clean up values used in automated calculations. An ordinary account on the site could control a value to change how the condition is evaluated and bypass the workflow logic. They could view hidden data but could not change anything.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if an administrator has configured a workflow using this condition with a value that can be set by an untrusted user.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate ECA Expression Language to 1.0.1 or 2.0.1, whichever branch you are on.
For developers: what the fix changed
The fix updates ExpressionLanguageCondition::evaluate in src/Plugin/ECA/Condition/ExpressionLanguageCondition.php to replace tokens with ExpressionLanguage variables instead of directly substituting their values into the expression string. It adds several helper methods to safely parse and map tokens to variables.
src/Plugin/ECA/Condition/ExpressionLanguageCondition.php+171 −4 fix