Skip to content

Reflected XSS in save_rating.php #11

@Snow1nd

Description

@Snow1nd

Summary

Reflected XSS in save_rating.php

Details

The POST parameter stars in the star_rating_saves/save_rating.php file is output to the page via json encoding. However, there is still a risk that dangerous characters are not fully filtered out.
https://github.com/jstolpe/blog_code/blob/master/star_rating_saves/save_rating.php#L30
star_rating_saves/save_rating.php

Poc

POST
stars=<a href=javascript:alert(document.cookie)>

Image

Impact

XSS vulnerabilities allow attackers to execute malicious scripts in users' browsers, enabling unauthorized access to sensitive data, session hijacking, or malware distribution.

If you have any other questions, you can contact me through my email snow1nd3xf@gmail.com.

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