Skip to content

Kibana server fails to handle long query string parameters #53464

@azasypkin

Description

@azasypkin

Kibana version: 7.5+ (haven't checked on earlier versions)

Browser version: any browser

Describe the bug: when opening Kibana with a very long query string parameters Kibana returns 400 and logs server error [11:40:44.623] [error][client][connection] Error: Parse Error in the terminal. It's a problem for the SAML authentication when we try to grab Kibana URL fragment and pass it to the server within a query string parameter.

Steps to reproduce:

  1. Open this link (e.g. 'http://localhost:5601/app/kibana?query=' + 'kibana'.repeat(1500)) on your local Kibana instance
  2. Observe a white screen in browser
  3. Observe error in the terminal

Expected behavior: Either such long URL should be properly processed and forwarded to the handler if any or error should be clear

Errors in browser console (if relevant): no errors visible, only 400 in the browser network tab

Provide logs and/or server output (if relevant): server error [11:40:44.623] [error][client][connection] Error: Parse Error

Any additional context: localhost_Archive [19-12-18 11-45-35].zip

/cc @elastic/kibana-security @restrry

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Team:OperationsKibana-Operations TeambugFixes for quality problems that affect the customer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions