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

CodeScanLabs_AvatarMod.txt

CodeScanLabs_AvatarMod.txt
Posted May 22, 2006
Authored by Paul Craig

The Avatar MOD gives portal administrators the ability to upload avatar images to be used within the forum. CodeScan located a file upload vulnerability in the avatar_upload.asp which can be exploited by a remote user to upload any arbitrary file. Affected is Avatar MOD versions 1.3 for Snitz Forums version 3.4.

tags | advisory, remote, arbitrary, asp, file upload
SHA-256 | 2eb62ab93715f9d4ee641a79883e816bcfc429ad114f94872a12317cca26fde8

CodeScanLabs_AvatarMod.txt

Change Mirror Download
========================================================================
= CodeScan Advisory, codescan.com <advisories@codescan.com>
= http://www.codescan.com/Advisories/CodeScanLabs_AvatarMod.html
=
= Avatar MOD v1.3 for Snitz Forums v3.4 - Arbitrary File Upload
=
= Vendor Website:
= http://www.snitzbitz.com/mods/details.asp?Version=All&mid=52
=
= Affected Version:
= Avatar MOD v1.3 for Snitz Forums v3.4
=
= Researched By
= Paul Craig <paul.craig@security-assessment.com>
=
= Public disclosure on May 18th, 2006
========================================================================

== Overview ==

CodeScan Labs (www.codescan.com), has recently released a new source
code scanning tool, CodeScan. CodeScan is an advanced auditing tool
designed to check web application source code for security vulnerabilities.
CodeScan utilises an intelligent source code parsing engine, traversing
execution paths and tracking the flow of user supplied input.

During the beta testing of CodeScan PHP, the Avatar MOD v1.3 for Snitz
Forums was selected as a test case application.

This advisory is the result of research into the security of the
Avatar MOD v1.3 for Snitz Forums, based on the report generated by the
CodeScan tool.

== Affected Versions ==

Avatar MOD v1.3 for Snitz Forums v3.4

== Vulnerability Details ==

* Arbitrary File Upload *

The Avatar MOD gives portal administrators the ability to upload avatar
images to be used within the forum. CodeScan located a file upload
vulnerability in the avatar_upload.asp which can be exploited by a remote
user to upload any arbitrary file.

[ Start Pseudo Code ]

Dim arrAllowedTypes
arrAllowedTypes = Array(".jpg",".jpeg",".gif",".png")
Dim strExtension
strExtension = LCase(Mid(FileName,InStrRev(FileName,".")))
Dim intForCounter
Dim blnAllow : blnAllow = False

for intForCounter = 0 to Ubound(arrAllowedTypes)
if strComp(strExtension,arrAllowedTypes(intForCounter),1) = 0 then
blnAllow = True
end if
next

if Not blnAllow then
UploadMessage = "[" & strExtension & "] is not allowed."
Exit Sub
End if

[ End Pseudo Code ]

This function is vulnerable to the ASP Null Byte problem as documented in
http://www.security-assessment.com/Whitepapers/0x00_vs_ASP_File_Uploads.pdf

Exploitation occurs when a null byte is embedded in the filename sent with
the upload. If a user were to upload the file test.asp[NULLBYTE].jpg the
application will write the file test.asp file to a writeable directory
inside the web root.

== Solutions ==

"Hamiln" the developer of the Avatar MOD was contacted in early April,
and we did not receive any response. Security-Assessment.com recommends
the file avatar_upload.asp be removed from any production web servers until
a new version of the software is released.

== Credit ==

Discovered by Paul Craig of Security-Assessment.com

== About CodeScan Labs Ltd ==

CodeScan Labs is a specialist security research and development
organisation, that has developed the cornerstone application, CodeScan.
CodeScan Labs helps organisations secure their web services through the
automated scanning of the web application source code for security
vulnerabilities. The CodeScan product is currently available for ASP
and PHP(Beta)


Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close