myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Andraschko (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (MYFACES-4279) inputText: lack of user input validation (maxlength)
Date Mon, 06 May 2019 08:38:02 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-4279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Andraschko resolved MYFACES-4279.
----------------------------------------
    Resolution: Fixed

> inputText: lack of user input validation (maxlength)
> ----------------------------------------------------
>
>                 Key: MYFACES-4279
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4279
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.3.2, 3.0.0-SNAPSHOT
>            Reporter: cnsgithub
>            Priority: Major
>              Labels: bypass, inputText, length, security, validation
>             Fix For: 3.0.0-SNAPSHOT, 2.3.4
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> h2. Expected Behaviour
> Server side validation should be performed as well.
> h2. Actual Behaviour
> {{h:inputText maxlength}} is validated on client side only. However, client side validation may
be bypassed easily.
> h2. Steps to reproduce
> I created a small github project to reproduce this behaviour: [https://github.com/cnsgithub/mojarra-ajax/tree/myfaces] (branch
myfaces)
>  To reproduce:
>  - {{git clone [https://github.com/cnsgithub/mojarra-ajax]}}
>  - {{git checkout myfaces}}
>  - run {{mvn clean package jetty:run}}
>  - after the server has started, open [http://localhost:8080/maxlength.xhtml|http://localhost:8080/index.xhtml]
>  - Enter some characters and press the _Submit_ button. Everything is fine.
>  - Press the _Hack_ button. 100 characters are written to the model.
> This issue was first found in PrimeFaces, see [https://github.com/primefaces/primefaces/issues/4420].
Other components may be affected as well.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message