BBcodes no funcionan tras la modificacion SIMPLETEXT
Publicado: 15 Feb 2010, 14:22
Hola, he leido detalladamente el tema de la vulnerabilidad de BBcodes e intentando hacer cada paso, pero no se si lo hice bien.
Los siguientes BBcodes no los modifique de como venia originalmente porque creo que el TEXT no está en el HTML pero tampoco estoy segura de haberlo entendido correctamente, son estos:
BBcode offtopic
Otro bbcode de offtopic
Otro mas de off que no edite por la misma razon, me equivoqué en alguno de los tres?
BBcode de letras que pasan por la pantalla y rebotan contra el marco de la misma
Bbcode anuncio importante
bbcode de marco glow para letras
Anuncio de mensaje editado por un admin o mod
Centrar
BBcode spoiler
Alguien me podria decir, por favor, si entendi bien y es correcto dejarlos como estaban o si debo modificarlos
Y estos son con los que he tenido problemas al modificarlos
Bueno, este creo que si lo he hecho bien, que es un bbcode de Copyright
estos creo que no
BBcode de Spoiler que se ve con un simbolo
HTML original
Lo edite como ponia:
y me sale esto:

aparece la palabra simpletext aunque yo he puesto la palabra Prueba, y delante de la raya y el + tambien aparece la palabra simpletext.
BBcode de Spoiler que se ve con contraseña.
HTML original
Editado:
Este directamente no funciona, aunque no aparece la palabara simpletext
Alguien me podria decir si los que no modifiqué son seguros sin modificarlos? y en que fallé en los tres ultimos?
Gracias de antemano
Los siguientes BBcodes no los modifique de como venia originalmente porque creo que el TEXT no está en el HTML pero tampoco estoy segura de haberlo entendido correctamente, son estos:
BBcode offtopic
Spoiler
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;">Offtopic:</div><div class="quotecontent">
{TEXT}
</div></div>
{TEXT}
</div></div>
Spoiler
<span style="color:#114499; font-weight:bold; font-style:italic;">Off topic:</span><br /><span style="color:#2277DD; font-style:italic;">{TEXT}</span>
Spoiler
<span><a href="#" title="Click this to see offtopic text" onclick="
obj=this.parentNode.childNodes[1].style;
tmp=(obj.display!='block') ? 'block' : 'none';
obj.display=tmp;
return false;">Offtopic</a><div class="offtopic" style="background:#FFFFE0;border-left:2px solid #738499;padding:5px;margin-top:5px;margin-bottom:5px;margin-left:20px;display:none;">{TEXT}</div></span>
obj=this.parentNode.childNodes[1].style;
tmp=(obj.display!='block') ? 'block' : 'none';
obj.display=tmp;
return false;">Offtopic</a><div class="offtopic" style="background:#FFFFE0;border-left:2px solid #738499;padding:5px;margin-top:5px;margin-bottom:5px;margin-left:20px;display:none;">{TEXT}</div></span>
Spoiler
<marquee direction=right behavior=alternate loop="5" scrollamount="4" width="100%">{TEXT}</marquee>
Spoiler
<div style="border: 5px double red; padding: 10px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255);">{TEXT}</div>
Spoiler
<table width="100%" style="filter:glow(color={COLOR}, strength=3)"><tr><td>{TEXT}</td></tr></table>
Spoiler
<div style=" background-color: #C17272; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #666; padding: 4px;" ><strong>Edit: </strong>{TEXT}</div>
Spoiler
<div align="center">{TEXT}</div>
Spoiler
<dl style="cursor: pointer;
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #C9D2D8;
font-size: 1em;
color: #000000;" onclick="this.getElementsByTagName('div')[0].style.display=((this.getElementsByTagName('div')[0].style.display=='none')?'':'none');">
<dt style="text-transform: uppercase;
border-bottom: 1px solid #CCCCCC;
margin-bottom: 3px;
font-size: 0.8em;
font-weight: bold;
display: block;
color: #000000;">..::Spoiler Haz Click::..</dt><dd><div style="display:none;">{TEXT}</div></dd></dl>
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #C9D2D8;
font-size: 1em;
color: #000000;" onclick="this.getElementsByTagName('div')[0].style.display=((this.getElementsByTagName('div')[0].style.display=='none')?'':'none');">
<dt style="text-transform: uppercase;
border-bottom: 1px solid #CCCCCC;
margin-bottom: 3px;
font-size: 0.8em;
font-weight: bold;
display: block;
color: #000000;">..::Spoiler Haz Click::..</dt><dd><div style="display:none;">{TEXT}</div></dd></dl>
Y estos son con los que he tenido problemas al modificarlos
Bueno, este creo que si lo he hecho bien, que es un bbcode de Copyright
Spoiler
<div style="margin:auto">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<div style=" background-color: #000000;color: #FFFFFF; -moz-border-radius: 16px; -webkit-border-radius: 16px; border: 1px solid #000000; padding: 4px; font-size: 1em;" />
<span style="text-align:center;"><strong>Copyright © <a href="{URL}" title="{SIMPLETEXT1}">{TEXT1}</a> 2008. All Rights Reserved.</strong></span></div>
</td>
</tr>
</table>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<div style=" background-color: #000000;color: #FFFFFF; -moz-border-radius: 16px; -webkit-border-radius: 16px; border: 1px solid #000000; padding: 4px; font-size: 1em;" />
<span style="text-align:center;"><strong>Copyright © <a href="{URL}" title="{SIMPLETEXT1}">{TEXT1}</a> 2008. All Rights Reserved.</strong></span></div>
</td>
</tr>
</table>
</div>
BBcode de Spoiler que se ve con un simbolo
HTML original
Spoiler
<dl class="codebox"><dt>{TEXT2} | <a href="javascript: void(0);" onclick="var spoiler = this.parentNode.parentNode.getElementsByTagName('dd')[0]; if ( spoiler.style.display == 'none' ) { spoiler.style.display = 'block'; this.innerHTML = '-'; } else { spoiler.style.display = 'none'; this.innerHTML = '+'; };">+</a></dt><dd style="display: none;">{TEXT1}</dd></dl>
Spoiler
<dl class="codebox"><dt>{SIMPLETEXT2} | <a href="javascript: void(0);" onclick="var spoiler = this.parentNode.parentNode.getElementsByTagName('dd')[0]; if ( spoiler.style.display == 'none' ) { spoiler.style.display = 'block'; this.innerHTML = '-'; } else { spoiler.style.display = 'none'; this.innerHTML = '+'; };">+</a></dt><dd style="display: none;">{SIMPLETEXT1}</dd></dl>


aparece la palabra simpletext aunque yo he puesto la palabra Prueba, y delante de la raya y el + tambien aparece la palabra simpletext.
BBcode de Spoiler que se ve con contraseña.
HTML original
Spoiler
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler</b>: <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="password=prompt('Please enter password to view this message...',' ');
if (password=='{TEXT1}')
{
alert('Password Accepted!');
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '')
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';
this.innerText = '';
this.value = 'Hide'; }
else
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none';
this.innerText = '';
this.value = 'Show';
}
}
">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{TEXT2}
</div>
</div>
</div>
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler</b>: <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="password=prompt('Please enter password to view this message...',' ');
if (password=='{TEXT1}')
{
alert('Password Accepted!');
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '')
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';
this.innerText = '';
this.value = 'Hide'; }
else
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none';
this.innerText = '';
this.value = 'Show';
}
}
">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{TEXT2}
</div>
</div>
</div>
Spoiler
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler</b>: <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="password=prompt('Please enter password to view this message...',' ');
if (password=='{SIMPLETEXT1}')
{
alert('Password Accepted!');
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '')
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';
this.innerText = '';
this.value = 'Hide'; }
else
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none';
this.innerText = '';
this.value = 'Show';
}
}
">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{SIMPLETEXT2}
</div>
</div>
</div>
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler</b>: <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="password=prompt('Please enter password to view this message...',' ');
if (password=='{SIMPLETEXT1}')
{
alert('Password Accepted!');
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '')
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';
this.innerText = '';
this.value = 'Hide'; }
else
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none';
this.innerText = '';
this.value = 'Show';
}
}
">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{SIMPLETEXT2}
</div>
</div>
</div>
Alguien me podria decir si los que no modifiqué son seguros sin modificarlos? y en que fallé en los tres ultimos?
Gracias de antemano