Skip to content

Bad evaluation of repeater template when importing fields #2060

@perrarina

Description

@perrarina

Hi, this is a port from Processwire forum to a problem we had in a big PW installation.
Here is the link to the forum post.
I consider this a security breach because for us it means a server crash: no inodes left on filesystem.

Processwire version: 2.6.23 rc2

Server: Linux, Ngnix, Maria DB, PHP-Fpm, EXT4 Filesystem

Problem: When you import a repeater field, PW don't validate the template of the parent_id field, and assign it to repeater page.

Reproduction steps:

1.- Export a repeater field.

2.- When importing, edit the parent-id to match with the ID of a page which template contains that repeater.

3.- Pw enter's in a loop of repeater pages creation.

Possible solution: when importing a repeater field check that the template assigned to the repeater doesn't contains the repeater itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions