Skip to content

sql 注入问题 #32

@s-chance

Description

@s-chance

UserMapper.xml

<select id="exportUser" resultType="org.springblade.system.excel.UserExcel">
        SELECT id, tenant_id, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment}
</select>

这段sql中使用 ${} 的方式拼接,是否存在 sql 注入问题?

过去有 issue 已提到过此问题,不过目前未做回复。想了解一下是否已经有其他措施针对此问题进行了处理?

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