When using the API to read values, any commas encoded within values (e.g. in the comments field) are not escaped. This makes it practically impossible to parse returned output and could lead to denial of service or injection type attacks.
For example… Put a couple of commas inside a comment:
[admin@HotSpot] > /tool user-manager user set bill comment="This is a comment with a comma, there and then a possible injection type attack here,disabled=true"
and then use the API to get the result:
<<< /tool/user-manager/user/get
<<< =.id=bill
<<<
>>> !done
>>> =ret=.id=*13,subscriber=admin,name=bill,username=bill,password=123,group-name=newgroup,last-seen=never,credit-count=1,credit-left=01:00:00,credit-duration=01:00:00,credit-price=500,credit-time-added=01:00:00,comment=This is a comment with a comma, there and then a possible injection type attack here,disabled=true,disabled=false
In the example above, the comment field has two commas in it and the entire reply has two ‘disabled=’ values.
How do I go about reporting this as a bug?