View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
06091Bug reportsExpression Managerpublic2012-05-14 22:31
Reporteruser19855Assigned Toc_schmitz  
PrioritynormalSeverityblock 
Status closedResolutionunable to reproduce 
Product Version1.92+ 
Summary06091: entering "{substr('1234567890',5,3)}" while editing a question causes "ERR_CONNECTION_RESET"
Description

While editing/creating a survey, if "{substr('1234567890',5,3)}" is entered into the "question" field of a new/existing question and the question is saved (the form submitted), a browser error will appear and form data will not be saved.

Steps To Reproduce

1.Create a new survey
2.Create a new question group
3.Create a new question
4.Type "{substr('1234567890',5,3)}" in the question field
5.Submit the form via the "save" button
6.Receive browser error...

Additional Information

I suspect that this has to do with data sanitation, since even typing "substr()" within the question field will produce the error - note the missing {} brackets!

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)120509
I will donate to the project if issue is resolvedYes
BrowserChrome 18, IE 9
Database type & versionMySQL 5.0.92
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version5.2.16
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

user19855

2012-05-14 08:43

  ~18731

This indeed seems like a sanitation issue, adding the following line to the EM array (ExpressionManager.php, line 211) causes "{bork('1234567890',5,3)}" to evaluate as expected.

user19855

2012-05-14 08:45

  ~18732

amusingly enough, I cannot paste the correct line here without causing a connection reset on submit :)

DenisChenu

DenisChenu

2012-05-14 15:10

developer   ~18734

Can't reproduce with Build 120509 and FF12.

I try:
With or without HTML editor
With or without XSS protection.

Denis

user19855

2012-05-14 15:21

  ~18735

Disabling XSS protection has no effect.
Globally disabling the the HTML editor resolves the issue (thanks!), though with the HTML editor enabled I can still reproduce the bug while in source editing mode.

TMSWhite

TMSWhite

2012-05-14 16:41

reporter   ~18738

I can't reproduce this either. Could it be filtering done by your service provider?

c_schmitz

c_schmitz

2012-05-14 22:31

administrator   ~18751

boazarad, this is most likely a false positive of mod_security (a server security module blocking suspicious content) or a similar software. Please contact your server adminstration, instead.

Issue History

Date Modified Username Field Change
2012-05-14 08:15 user19855 New Issue
2012-05-14 08:43 user19855 Note Added: 18731
2012-05-14 08:45 user19855 Note Added: 18732
2012-05-14 15:10 DenisChenu Note Added: 18734
2012-05-14 15:21 user19855 Note Added: 18735
2012-05-14 16:41 TMSWhite Note Added: 18738
2012-05-14 22:31 c_schmitz Note Added: 18751
2012-05-14 22:31 c_schmitz Status new => closed
2012-05-14 22:31 c_schmitz Assigned To => c_schmitz
2012-05-14 22:31 c_schmitz Resolution open => unable to reproduce