Skip to content

Input validation #24

@dneukirchen

Description

@dneukirchen

Steps to reproduce the issue

Send a post request with invalid / unrealistic data.

curl -X POST -F "unique_id=example5unique7id2425" -F "php_version=7.9" -F "db_type=mysql" -F "db_version=1.0" -F "cms_version=3.9" -F "server_os=something" "http://developer.joomla.org/stats/submit"

Fields that are not validated correctly:

  • php_version (all between 5.3.1 and 8.0.0 (except major 6) is allowed).
  • cms_version
  • db_version
  • server_os

Expected result

Some kind of validation/general error. whitelist/blacklist validation.

Actual result

Data is not validated correctly and will be saved.

Additional comments

sorry for some test posts ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions