Skip to content

There is an xss vulnerability of HTTP header injection storage in jfinal_cms V5.1.0 #34

Open
@qq87234770

Description

There is a storage XSS vulnerability in the guest TOP10 of jfinal_cms. TOP10 will display the ip of the user, but it can be modified by X-Forwarded-For, where the attacker can insert malicious XSS code. When the administrator logs in, the malicious XSS code triggers successfully.

payload: X-Forwarded-For: 192.168.1.1<script>alert ("xss")</script>

In the background login interface, enter the account password randomly, fill in the correct verification code, and then submit and grab the package.
图片

The contents of the grab bag are as follows:
图片

Add an X-Forwarded-For here and enter paylaod (192.168.1.1<script>alert ("xss")</script>)
图片

Then log in with the background administrator account to trigger the storage XSS.
图片

Safety advice:
Strictly filter the user's input
Strict control of page rendering content

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions