You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Nikki Marie (Jira)" <de...@myfaces.apache.org> on 2019/09/25 13:44:00 UTC

[jira] [Commented] (MYFACES-4279) inputText: lack of user input validation (maxlength)

    [ https://issues.apache.org/jira/browse/MYFACES-4279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16937745#comment-16937745 ] 

Nikki Marie commented on MYFACES-4279:
--------------------------------------

Nikkita9

> 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
(v8.3.4#803005)