Closed Bug 943472 Opened 12 years ago Closed 12 years ago

esFrontLine treats empty path components incorrectly

Categories

(Testing :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: st3fan, Assigned: ekyle)

References

Details

There is a check in esFrontline to match requests paths like: /indexname/_search /indexname/_mappings This should prevent requests like: /indexname/_stats However, by appending an empty path element as follows: /bugs/_stats/ The filter() fuction passes it as valid and gives it straight to ES. (It counts 3 request path elements and thus passes the test) Example: curl --silent --compressed -XGET http://klahnakoski-es.corp.tor1.mozilla.com:9292/bugs/_stats/ | python -mjson.tool { "_all": { "indices": { "bugs20130722": { "primaries": { "docs": { "count": 34732792, "deleted": 373919 }, ...
Same trick to execute commands with just one path component: I was able to discover all indexes as follows: curl --silent --compressed -XGET http://klahnakoski-es.corp.tor1.mozilla.com:9292/_stats// | python -mjson.tool { "_all": { "indices": { "bug_summary130510_172316": { "primaries": { "docs": { "count": 893004, "deleted": 0 }, ...
You need to log in before you can comment on or make changes to this bug.