Open
fix: validate check_user request credentials before use #21
super dog.Add on  May 27
super dog.
super dog.
May 27 Create

Problem

func/check.py:check_user() directly indexes json_data["user"] and json_data["passwd"]. If the client sends an incomplete request, the handler raises KeyError.

Impact

Malformed credential validation requests can crash the handler instead of returning a normal error response.

Suggested Fix

Read user and passwd with validation before writing the password file or starting SSH validation.

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
May 27 Added label: sig/sig-Migration
openeuler-ci-bot
openeuler-ci-botCollaborators
May 27 Comments:

Welcome To openEuler Community

Hey @papertager , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-Migration ,
and any of the maintainers: @blublue, @genedna, @stonefly128, @weidongkl, @xingwei-liu, @yeqinglong01 ,
and any of the committers: @blublue .

likedislike
super dog.super dog.
May 27 Associated pull request