View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
18467Bug reportspublic2026-11-19 22:22
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Summary18467: Better validation of QuestionAttribute
Description

There are only xss filter for validation on attribute value, then can enter anything for example for integer.

Steps To Reproduce

Steps to reproduce

Create a question upload
F12, update HTML, set min settings to input text
Put aaa in min settings
Save and close

Expected result

Value are not saved, or are filtered as 0

Actual result

Saved as aaa

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version
Git branch / Pull Request URLN/A

Relationships

related to 18464 closedDenisChenu Min/max settings doesn't work for question attribute with type of integer 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2022-11-08 12:19

developer   ~72631

In general : we check it when using. Not a big issue, maybe not to fix.

type are only helper then, no rules :).

c_schmitz

c_schmitz

2026-11-19 22:22

administrator   ~87673

In LimeSurvey 7, question attribute values are checked against the attribute type on save (QuestionAttribute::sanitizeByInputType): number attributes must be numeric, switches must be 0/1 and select attributes must be one of their options. Closing as fixed.

Issue History

Date Modified Username Field Change
2022-11-08 12:18 DenisChenu New Issue
2022-11-08 12:18 DenisChenu File Added: Capture d’écran du 2022-11-08 12-15-48.png
2022-11-08 12:19 DenisChenu Note Added: 72631
2022-11-08 12:19 DenisChenu Bug heat 0 => 2
2022-11-08 12:19 DenisChenu Relationship added related to 18464
2026-11-19 22:22 c_schmitz Note Added: 87673
2026-11-19 22:22 c_schmitz Bug heat 2 => 4
2026-11-19 22:22 c_schmitz Status new => closed
2026-11-19 22:22 c_schmitz Resolution open => fixed
2026-11-20 10:33 c_schmitz Category Survey Design => (No Category)