vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - BB Code (flash animations .swf) (https://vborg.vbsupport.ru/showthread.php?t=235131)

SEW810 02-05-2010 10:00 PM

BB Code (flash animations .swf)
 
1 Attachment(s)
What does it do?
This BB Code allowes to insert .swf animations into your posts or user's signatures.
When you click on "F" button (see zip file) you have to do this:
1.- Enter height and width values (see screenshot 1)
2.- Enter your .swf URL (see screenshot 2)
3.- That's all !!

Demo
http://www.seusers.com/foro/142266-post20.html (Signature)

Works with vb 3.8.x??
Yes

How to install?
Upload image form zip file.

Goto AdminCp->Custom BB Codes->Add new BB Code
Code:


Title: Flash BB Code
BB Code Tag Name : swf
Replacement:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" {option} id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="{param}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent">
<param name="menu" value="false"/>
<embed src="{param}" quality="high" bgcolor="#ffffff" {option} wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="Adobe - Adobe Flash Player" />
</object>


Example: [swf="height=100 width=400"]http://www.seusers.com/intro.swf[/swf]
Description: This BB Code allowes to insert .swf animations into your posts or user's signatures.
Use {option}: Yes
Button Image (Optional) : Upload from zip file to /images/editor or /your_style/images/editor if you are not using vbulletin default style.
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: No
Disable Word Wrapping Within This BB Code: No (Not available in 3.8.x or lower, just omit it)
Disable Automatic Link Parsing Within This BB Code: Yes (Not available in 3.8.x or lower, just omit it)

History
  • 1.0 Release
  • 1.1 Fixed some code. Now working with vb 3.8.x and 4.0.3

saadessa 02-06-2010 05:45 AM

thank you i will try it

GreenKman 02-06-2010 06:06 AM

This is worse than letting someone use HTML in their signature. Imagine how quickly somebody could spread a virus, considering how big said person's forum is.

SEW810 02-06-2010 02:59 PM

Oh my God!, maybe I should uninstall ads on my forum, because they are using almost the same code.

CĀ“mon people, swf files are just animations, just like youtoube embebed videos, flv videos. How come do you attach a virus on an animation?.

Best regards

TimberFloorAu 02-06-2010 11:55 PM

I Suppose a swf can contain malicious code.

http://www.sophos.com/security/analy...swflfm926.html

SEW810 02-07-2010 01:23 AM

yeah, specially if you execute it /open it manually.
NEVER a swf animation executed on a web page will interact with your hard disk files, Macromedia has implemented policies to avoid this kind of actions

Quote:

In testing Sophos has confirmed the Macromedia Flash element of the virus works when the SWF file is manually downloaded from an affected website and opened using the Macromedia Flash player.
Interesting, it says something about interact with a program INSTALLED in your har disk, oh and dowload that file... oh yeah, I got it, "virus attack if I DOWNLOAD an swf file, save it on My Documents or something and then I open it" .... Jesus, what's that for??, did you forget that you were surffing the internet and visiting a forum? ?? Don't do experiments if you don't know what you are doing.

Quote:

Sophos recommends webmasters put in place procedures and policies to ensure the integrity of the code they place on their websites, whether it be obviously executable (in the case of, for instance, EXE and COM files) or Macromedia Flash movies.
Totally inofesive that code, I repeat, is the same code used on http://www.msn.com/ at Advertisement, or at http://www.nfl.com/ or any site with flash animations.

Please people, don't worry... be happy :)

If you don't want to take "the risk", please just don't install it.
Sharing this bb code wont help me to hack your site or get your bank account PIN or something.

syrus.xl 02-08-2010 05:37 AM

This is one of the biggest security holes I have seen on here yet!!!! Allowing HTML, is one thing, but a SWF is totally different.

Yes, it could be used for pretty animations in signatures, but it can also be used for malicious purposes. Okay, many companies use flash adverts, but these are designed by professional flash authors who do not place actionscript in SWF files for other purposes.

SWF files do not need to be downloaded to your PC to infect it (You are correct on that remark!), with SWF's it's done on a much larger scale. SWF files can easily be coded to do call-backs, cause re-directs and much more.

Quote:

Please people, don't worry... be happy
People will not be happy when they lose their forums because of a modification, that has opened up their vBulletin to attacks.

I cannot see this modification being allowed to stay on vbulletin.org when it is such a high security risk to any forum!

It would not be too bad if it was Usergroup specific, but it is not even that.

SEW810 02-09-2010 01:05 AM

Quote:

Originally Posted by Dr.osamA (Post 1977174)
hhhhhhhhhhhhhhhhhhh :D:D:D:D

i love you man looooooooooool

by the way i just installed it but not working
i thing i do mistake anywhere

plzz SEW810 help me with this

try it in my site
http://www.alra7ba.net/vb/showthread...68266&langid=1

user : vBulletin
pw = 123456

thanx agen man

Man, for security reasons, please change password and MP the new one.
I can see you are using another swf bb code. Maybe the other ones is creating conflict.

SEW810 02-10-2010 12:25 AM

I see, your bb code Replacement stuff is wrong man, you have something like this:

<EMBED src={option} quality=high loop=true menu=false {param} TYPE="application/x-shockwave-flash"</EMBED>

Please, copy and paste just like this:

Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/s...ersion=7,0,0,0" {option} id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="{param}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent">
<param name="menu" value="false"/>
<embed src="{param}" quality="high" bgcolor="#ffffff" {option} wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="Adobe - Adobe Flash Player" />
</object>

... or switch {option} and {param}

If you need help, you can make a temporary admin account and MP me user name and password, so I could take a look.
Regards

w-elbalad.com 03-09-2010 01:27 AM

thanks
but why flash is small
and i dont have choise to change px

arena 03-10-2010 10:08 PM

not working

murekhalir 03-11-2010 12:04 AM

This is a REALLY good mod.

Just allow ADMINS or set usergroups to upload SWF.

I really NEED this code + thanks.

hiker 04-13-2010 08:21 PM

Would this allow me to embed a flickr slideshow? I'm desperately looking for some flickr slideshow bbcode, would this work for it, or could it be modified slightly to make it work?

Thanks.

Dr.osamA 04-19-2010 11:05 PM

for vb 4.0.3 not working

Veer 05-01-2010 03:06 PM

Not working on vb 4.0.3

Please update asap! thanks.

safakuygur 05-01-2010 11:01 PM

very very good thanks

ZEHH 05-02-2010 04:38 AM

I am waiting to update to 4.0.3

Hippy 05-02-2010 01:00 PM

1 Attachment(s)
didn't notice it wasn't working with vb4.0.3
while we wait. here is a better image to use ;)
:up:

SEW810 05-04-2010 04:06 AM

Cool image Hippy.
Updated and working with vb 4.0.3

Eve_Ra 05-04-2010 07:25 AM

It's normal that not working !

Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/s...ersion=7,0,0,0" {option} id="Untitled-1" align="middle">
The url has been truncated.

For avoid doing that, put the .txt file in archive.

SEW810 05-04-2010 03:03 PM

Rare, it's working for me, url truncated or not BB Code works anyway
See https://vborg.vbsupport.ru/attachmen...9&d=1272955427

.txt added to zip file

Daniel_HBK 05-05-2010 11:16 PM

i'm using this replacement :-

Code:

<object><embed src="{param}" {option} allowScriptAccess ="never" type="application/x-shockwave-flash"></embed></object>

NNJJ 05-17-2010 01:25 PM

thats cool

thanks!

Dr.osamA 05-20-2010 04:59 AM

thanxx foor update bro

NNJJ 05-20-2010 11:31 AM

its working fine with me but size too small!

SEW810 05-21-2010 03:06 AM

you can always change red values dude for bigger size :)

[swf="height=100 width=400"]http://www.seusers.com/intro.swf[/swf]

NNJJ 05-21-2010 07:25 AM

Quote:

Originally Posted by SEW810 (Post 2040950)
you can always change red values dude for bigger size :)

[swf="height=100 width=400"]http://www.seusers.com/intro.swf[/swf]


what if i dont want a size; can i remove it so it will take whatever size user going to put?

i cant see what ur saying
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/s...ersion=7,0,0,0" {option} id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="{param}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent">
<param name="menu" value="false"/>
<embed src="{param}" quality="high" bgcolor="#ffffff" {option} wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="Adobe - Adobe Flash Player" />
</object>

ti07shadow 06-25-2010 06:23 AM

hmm

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" {option} id="Untitled-1" align="middle">

lets see

whats stopping me from doing this... (entering this data when posting the swf tags with option)


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" onLoad="window.location.href = "http://www.whatever.com";" id="Untitled-1" align="middle">

thats a good way to either deliver people to malicious sites or even better redirect member traffic


Also no offense but loading the web page is interacting with EVERYTHING on the page

there's websites that all you have to do is go to them to get a virus or malware.

also this mod is not safe from XSS attacks and the obvious other problems with remote and in malicious code that may be in relation to the swf file.


I suggest go higher in depth into the mod and have it interact with a php file which takes care of security issues. at leat do something about the xss attacks. and just take the risk with the flash files. There are security measures for flash files to. lok em up and learn :p

AURFSCAN 06-25-2010 07:34 AM

I tried this and it does work well but since I'm the only one (admin) that needs to post flash,
I allow only myself to post in html and therefore can post flash without this bbcode.

theres an advanced bbcode permissions mod here that you could use this with usergroups you trust, thats works well too

Terrona 07-25-2010 10:14 AM

Does not work on v4.0.5

If you can update through

safakuygur 07-29-2010 12:45 PM

good thanks

Terrona 07-29-2010 12:52 PM

waiting update v 4.0.5

WriteToEnlight 08-02-2010 01:36 PM

Quote:

Originally Posted by Terrona (Post 2076265)
waiting update v 4.0.5

Me too, or should I say soon 4.0.6 ;)

BirdOPrey5 08-07-2010 10:32 PM

Another vote for this being a serious security issue... I won't ever post in this thread again but I could not ignore this without warning people to seriously research the issue if they don't understand the risks in this. Limiting the use to trusted admins is an absolute minimum.

firattetik 08-18-2010 10:36 AM

thanks

OldSchoolDSL 02-04-2011 03:46 AM

Installed & working

4.1.1

abumohamed 04-18-2011 05:11 AM

It works on 4.1.3
THANKS

syrus.xl 04-18-2011 01:12 PM

Quote:

Originally Posted by SEW810 (Post 1976385)
yeah, specially if you execute it /open it manually.
NEVER a swf animation executed on a web page will interact with your hard disk files, Macromedia has implemented policies to avoid this kind of actions

Obviously, you are not a flash author or you would know that statement is completely incorrect. Flash SWF files on any webpage are executed automatically upon page load. Anyone that knows actionscript could easily upload and cause serious damage to any forum that has this modification enabled.

Quote:

Interesting, it says something about interact with a program INSTALLED in your har disk, oh and dowload that file... oh yeah, I got it, "virus attack if I DOWNLOAD an swf file, save it on My Documents or something and then I open it" .... Jesus, what's that for??, did you forget that you were surffing the internet and visiting a forum? ?? Don't do experiments if you don't know what you are doing.
Any forum carrying this sort of modification is leaving itself open to security issues. By the way, SWF files are cached directly to your system, so in affect they are downloaded. Here's just one example... Open up Flash, in the first frame add this code:

Code:

var url:String = "http://www.google.com";
var request:URLRequest = new URLRequest(url);
try {
        navigateToURL(request, "_self");
} catch (e:Error) {
        trace("Error occurred!");
}

This is AS3.0 code..

Now you have a redirect, if anyone hits the post containing the uploaded SWF file. Even more dangerous is if the code is far more malicious. The above code could easily redirect a person to another site containing a trojan which would infect their systems or even coded as a XSS exploit.

Quote:

Totally inofesive that code, I repeat, is the same code used on http://www.msn.com/ at Advertisement, or at http://www.nfl.com/ or any site with flash animations.
These advertisements are added by web development teams and would under go strict QA before being allowed on a page. The only part that is safe about this code is the embed code, but even this breaks Strict xHTML W3C policies, check your coding regarding embedding flash correctly on a webpage and consider vB4 uses Strict xHTML, so by using this coding you are straight away breaking the Strict xHTML of vB4.

Quote:

Please people, don't worry... be happy :)

If you don't want to take "the risk", please just don't install it.
Sharing this bb code wont help me to hack your site or get your bank account PIN or something.
Nobody would be happy with a hacked database, or a forum that is infecting peoples systems. Eventually, Google would place a 'Red' Alert page for malicious code if the problem was not dealt with. This is a very serious security hole to add to vBulletin and in my opinion like many others on here, should be removed for peoples safety, at least.

thecore762 03-25-2012 05:03 AM

This works perfectly with vB 4.1.11!

yuchan 03-30-2012 05:18 PM

works perfectly with Version 4.1.3 too


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01391 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete