Skip to content

There is sql injection in the system #108

@haioudelibaiyi

Description

@haioudelibaiyi

OfficeDao->findOrderOfficeNum has injection points '%${officesName}%' and '%${hospitalName}%'

Image
The cn. Sfturing. Service. Impl. OfficeServiceImpl# findOrderOfficeNum calls officeDao.findOrderOfficeNum(office.getHospitalName(), office.getOfficesName()); Vulnerability point

Image

Cn. Sfturing. Web. OfficeController# orderOffcie call pageUtils. SetTotalRecord (officeService. FindOrderOfficeNum (office));​ The vulnerability point, and this function point is a front-end function point, which can be accessed by any user.

Image

The final constructed payload is:
POST /ssm_pro/orderOffice/1 HTTP/1.1
Host: localhost:8082
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Content-Length: 28
hospitalName=&officesName=*

Obtain the current user as "root"

Image

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