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

Sieve editor infinite parsing loop on malformed scripts #9562

Closed
2 tasks done
ScottPeterJohnson opened this issue Jul 30, 2024 · 1 comment
Closed
2 tasks done

Sieve editor infinite parsing loop on malformed scripts #9562

ScottPeterJohnson opened this issue Jul 30, 2024 · 1 comment

Comments

@ScottPeterJohnson
Copy link

ScottPeterJohnson commented Jul 30, 2024

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

Consider the following malformed (simplified) Sieve script, from a user who forgot to use the "text:" prefix:

vacation :subject "" :from ""
<a href="https://test.org/">test</a>

This will cause an infinite loop due to the following line:

Which in the case of the next character not being a *, never advances the parsing position. A simple solution is to make the error case a few lines below also apply if the next character is not a star.

What browser(s) are you seeing the problem on?

No response

What version of PHP are you using?

v8.1

What version of Roundcube are you using?

v1.6.7

JavaScript errors

No response

PHP errors

No response

@alecpl
Copy link
Member

alecpl commented Jul 31, 2024

Fixed.

@alecpl alecpl closed this as completed Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants