CVE-2012-4873 : Detail

CVE-2012-4873

Cross-site Scripting
A03-Injection
0.35%V4
Network
2012-09-06
21h00 +00:00
2024-09-17
01h40 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Cross-site scripting (XSS) vulnerability in the file_download function in GNUBoard before 4.34.21 allows remote attackers to inject arbitrary web script or HTML via the filename parameter.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Metrics

Metrics Score Severity CVSS Vector Source
V2 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 36973

Publication date : 2012-03-19 23h00 +00:00
Author : wh1ant
EDB Verified : Yes

source: https://www.securityfocus.com/bid/52622/info Gnuboard is prone to an HTML-injection vulnerability because it fails to properly sanitize user-supplied input before using it in dynamically generated content. Attacker-supplied HTML and script code would run in the context of the affected website, potentially allowing the attacker to steal cookie-based authentication credentials or control how the site is rendered to the user. Gnuboard versions prior to 4.34.21 are vulnerable. 1) you can upload a file (e.g. a.txt) to the BBS. 2) you can download it from the following scripts and figure out what's working on. ### vulnerable code ######################################################################################################################### javascript:file_download('./download.php?bo_table=test&wr_id=13&no=0&sca=&sfl=&stx=&sst=&sod=&spt=0&page=0', 'a.txt'); ############################################################################################################################################# 3) you can also upload a file with name of XSS code. The following is the example. - ');alert(document.cookie);// - %27);alert(document.cookie);%2f%2f - %27%29%3b%61%6c%65%72%74%28%64%6f%63%75%6d%65%6e%74%2e%63%6f%6f%6b%69%65%29%2f%2f ### vulnerable code ######################################################################################################################### javascript:file_download('./download.php?bo_table=test&wr_id=13&no=0&sca=&sfl=&stx=&sst=&sod=&spt=0&page=0', '');alert(document.cookie);//'); ############################################################################################################################################# 4) The example file works by pulling in the Javascript and running it as part of the Javascript.

Products Mentioned

Configuraton 0

Sir>>Gnuboard >> Version To (including) 4.34

References

http://www.exploit-db.com/exploits/18627
Tags : exploit, x_refsource_EXPLOIT-DB
http://secunia.com/advisories/48458
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securityfocus.com/bid/52622
Tags : vdb-entry, x_refsource_BID