CVE-2005-2721

Foojan PHP Weblog - Cross-Site Scripting via HTTP Referer Header

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2005-2721. PoCs published by ali202.

AI-analyzed exploit summary The code describes an HTML injection vulnerability in Foojan PHPWeblog due to improper sanitization of user-supplied input. The issue lies in the `gmain.php` file where the `HTTP_USER_AGENT` and `HTTP_REFERER` values are directly inserted into the database without sanitization.

Description

Multiple cross-site scripting (XSS) vulnerabilities in (1) index.php or (2) admin.php in Foojan PHP Weblog allow remote attackers to inject arbitrary web script or HTML via the Referer field in the HTTP header.

Exploits (1)

exploitdb WRITEUP VERIFIED
by ali202 · textwebappsphp
https://www.exploit-db.com/exploits/26197

The code describes an HTML injection vulnerability in Foojan PHPWeblog due to improper sanitization of user-supplied input. The issue lies in the `gmain.php` file where the `HTTP_USER_AGENT` and `HTTP_REFERER` values are directly inserted into the database without sanitization.

Classification
Writeup 90%
Attack Type
Xss
Complexity
Trivial
Reliability
Reliable
Target: Foojan PHPWeblog
No auth needed
Prerequisites: Access to the vulnerable application
MITRE ATT&CK
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (4)

Core 4
Core References
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/16565/
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/22004
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/14658
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=112491140712884&w=2

Scores

EPSS 0.0175
EPSS Percentile 75.3%

Details

Status published
Products (1)
foojan/php_weblog
Published Aug 30, 2005
Tracked Since Feb 18, 2026