View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 11194 | Bug reports | Survey editing | public | 2016-05-15 18:58 | 2016-05-25 21:15 |
| Reporter | DenisChenu | Assigned To | |||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 2.50.x | ||||
| Summary | 11194: Bad class can totally broke HTML | ||||
| Description | cssclass attribute (and a lot of other attribute) is not filtered or encoded: any admin can easily broke HTML flow | ||||
| Steps To Reproduce | Use for classname
Or import inlcuded survey | ||||
| Additional Information | At minima : we need to encode quote, but thinki we must completely filter all this settings. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 160515 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | not relevant | ||||
| Webserver software & version (if known) | not relevant | ||||
| PHP Version | not relevant | ||||
|
Yep, why not, to prevent insertion of quotes by mistake. I don't see it as a huge problem, since admin are supposed to be able to use their own js for question, or to add their own HTML for questions/suquestions/answers... |
|
|
Any admin : even with XSS security. And a lot of survey admin don't really understand what they do. |
|
|
Carsten fixed it. |
|
|
When ? Because in last GIT : i still have same behaviour. I think the better way seems to use |
|
|
idk, he told me yesterday that he fixed it. |
|
|
htmlentities or addshlash . what to do .... Where did you fix $dispVal and $tiwidth https://github.com/LimeSurvey/LimeSurvey/blob/master/application/views/survey/questions/shortfreetext/text/item.php#L39 ? In qanda_helper ? |
|
|
yep |
|
|
Version 2.50+ Build 160526 released |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-05-15 18:58 | DenisChenu | New Issue | |
| 2016-05-15 18:58 | DenisChenu | File Added: limesurvey_survey_cssclass.lss | |
| 2016-05-17 10:33 |
|
Note Added: 38589 | |
| 2016-05-17 10:34 | DenisChenu | Note Added: 38590 | |
| 2016-05-25 17:13 |
|
Note Added: 38871 | |
| 2016-05-25 17:13 |
|
Status | new => resolved |
| 2016-05-25 17:13 |
|
Resolution | open => fixed |
| 2016-05-25 17:13 |
|
Assigned To | => LouisGac |
| 2016-05-25 17:28 | DenisChenu | Note Added: 38875 | |
| 2016-05-25 17:45 |
|
Note Added: 38881 | |
| 2016-05-25 17:50 | DenisChenu | Note Added: 38883 | |
| 2016-05-25 17:50 | DenisChenu | Note Edited: 38883 | |
| 2016-05-25 18:04 |
|
Note Added: 38884 | |
| 2016-05-25 21:15 | c_schmitz | Note Added: 38888 | |
| 2016-05-25 21:15 | c_schmitz | Status | resolved => closed |
| 2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |