Showing posts with label CSRF. Show all posts
Showing posts with label CSRF. Show all posts

Structured Text Amplification (STA)

Tuesday, June 23, 2026
Structured Text Amplification (STA)
cuando un texto pequeño se convierte en un problema grande

El fenómeno que puede hacer que un simple mensaje, enlace o dato estructurado termine desestabilizando un sistema.

Introducción

¿Cómo puede un texto aparentemente inocente provocar que una aplicación deje de responder o incluso afectar a la estabilidad de un sistema entero?

La respuesta no siempre está en el tamaño del texto original, sino en lo que ocurre durante su recorrido por las capas internas del software. Un fenómeno que denomino Structured Text Amplification (STA) describe precisamente cómo determinados datos pueden crecer progresivamente al ser procesados, hasta superar límites que originalmente parecían muy lejanos.

Aunque hablamos de "texto", este fenómeno no se limita al texto plano. Puede producirse con cualquier información que atraviese múltiples capas de procesamiento: URLs, metadatos, estados de aplicaciones, formularios, mensajes o estructuras de datos complejas.

¿Qué es la Amplificación de Texto Estructurado?

La Amplificación de Texto Estructurado (Structured Text Amplification o STA) es un fenómeno que puede producirse cuando un dato atraviesa múltiples capas internas de una aplicación o de un sistema operativo. Durante ese recorrido, la información original puede aumentar significativamente de tamaño debido a procesos como la codificación, serialización, empaquetado, almacenamiento de estados o incorporación de metadatos.

En determinadas circunstancias, ese crecimiento acumulado puede provocar que los datos finales superen límites internos establecidos por el sistema para transportar, almacenar o procesar información. Cuando esto ocurre, pueden aparecer errores, bloqueos o problemas de estabilidad.

📌 Idea clave: No se trata necesariamente de un fallo aislado en una aplicación concreta, sino de un patrón arquitectónico que puede surgir cuando múltiples componentes procesan la misma información sin considerar el tamaño final que alcanzará tras todas las transformaciones.

¿Por qué ocurre?

Los sistemas modernos intercambian constantemente información entre procesos, servicios y componentes internos. Cada vez que un dato atraviesa una de estas capas, pueden realizarse operaciones como:

  • Conversión a formatos internos.
  • Codificación de caracteres.
  • Inclusión de metadatos.
  • Serialización para transporte o almacenamiento.
  • Empaquetado dentro de estructuras más complejas.
  • Conservación de estados para recuperación posterior.

Cada una de estas operaciones añade información adicional. Por separado, este crecimiento suele ser insignificante. Sin embargo, cuando múltiples capas realizan transformaciones sucesivas sobre los mismos datos, el tamaño total puede aumentar de forma considerable.

El problema aparece cuando cada componente valida únicamente el tamaño de los datos que recibe, mientras que ninguno evalúa el tamaño real que alcanzarán después de todas las transformaciones posteriores.

Un ejemplo sencillo

Imagina que quieres enviar una carta.

Primero introduces la hoja en un sobre. Después colocas ese sobre dentro de una caja para protegerlo. Más tarde, la caja se introduce dentro de otra mayor junto con documentación adicional. Finalmente, todo el conjunto se empaqueta para el transporte.

La carta original apenas ocupaba espacio, pero el paquete final resulta mucho más grande que el contenido inicial. La Amplificación de Texto Estructurado funciona de forma similar: el dato original puede ser relativamente pequeño, pero cada capa añade información hasta que el tamaño final supera las capacidades previstas por el sistema.

El factor de amplificación

Uno de los aspectos más importantes de este fenómeno es que el riesgo no depende únicamente del tamaño inicial. Un contenido aparentemente razonable puede experimentar múltiples expansiones sucesivas durante su procesamiento.

El resultado es un factor de amplificación acumulado que multiplica el tamaño efectivo de los datos. Por este motivo, el problema puede pasar desapercibido durante las validaciones iniciales. Cada componente observa únicamente una parte del proceso y puede considerar que el contenido es aceptable, mientras que el tamaño total continúa creciendo en etapas posteriores.

⚠️ En otras palabras: el riesgo no reside necesariamente en un dato grande, sino en un dato capaz de crecer mucho más de lo que parece.

¿Qué impacto puede tener?

Cuando el tamaño final supera determinados límites internos, pueden producirse distintos efectos:

  • Cierre inesperado de aplicaciones.
  • Pérdida temporal de funcionalidad.
  • Congelaciones o ralentizaciones importantes.
  • Errores durante la restauración de estados guardados.
  • Reinicios de componentes compartidos.
  • Fallos persistentes si el estado problemático queda almacenado y vuelve a cargarse posteriormente.

La gravedad depende de la arquitectura concreta, del componente afectado y de la forma en que el sistema gestione los errores.

¿Es un problema de seguridad? En determinados escenarios, sí.

Cuando un actor puede provocar deliberadamente que una aplicación o un componente alcance límites internos de procesamiento, almacenamiento o comunicación, el fenómeno puede convertirse en una vulnerabilidad de disponibilidad o denegación de servicio (DoS).

En estos casos, el objetivo no es acceder a información privada ni ejecutar código arbitrario, sino impedir que un servicio funcione correctamente o degradar significativamente su funcionamiento.

ℹ️ Relevancia: La importancia de este tipo de problemas aumenta cuando los mecanismos afectados son compartidos por múltiples aplicaciones o forman parte de componentes fundamentales del sistema operativo.

En algunos escenarios, basta con que un usuario interactúe con contenido especialmente diseñado para desencadenar estas amplificaciones acumulativas.

¿Por qué es difícil detectarlo?

La detección resulta especialmente compleja porque el dato original puede parecer completamente normal. Los mecanismos de validación suelen centrarse en el tamaño visible de la entrada, mientras que la amplificación aparece durante etapas internas de procesamiento.

Además, diferentes capas pueden utilizar representaciones distintas del mismo contenido, dificultando estimar cuál será el tamaño real una vez completado todo el recorrido. Como consecuencia, los controles pueden considerar seguro un contenido que terminará superando límites críticos varios pasos después.

¿Cómo puede mitigarse?

Existen diversas estrategias para reducir el riesgo:

  • Validar el tamaño después de las transformaciones críticas.
  • Establecer límites de seguridad conservadores.
  • Truncar o rechazar contenidos que puedan generar expansiones excesivas.
  • Gestionar adecuadamente los errores cuando se alcanzan límites internos.
  • Diseñar mecanismos de recuperación robustos.
  • Monitorizar el crecimiento de estructuras complejas durante su procesamiento.

Aunque las aplicaciones pueden adoptar medidas defensivas, muchas de las mitigaciones más eficaces requieren cambios en los propios mecanismos internos de las plataformas y sistemas operativos.

Conclusión

La Amplificación de Texto Estructurado (STA) describe un fenómeno por el cual un dato puede crecer significativamente de tamaño al atravesar múltiples capas de procesamiento dentro de una aplicación o sistema operativo.

El riesgo no proviene únicamente del tamaño inicial del contenido, sino de la suma de todas las transformaciones que se producen durante su recorrido. Cuando ese crecimiento acumulado supera los límites previstos por la plataforma, pueden aparecer problemas de estabilidad, errores de funcionamiento o vulnerabilidades de disponibilidad.

Aunque la mayoría de los usuarios nunca verán estos mecanismos internos, comprender cómo se producen estas amplificaciones permite identificar una categoría de fallos que suele pasar desapercibida durante el desarrollo. A medida que los sistemas modernos se vuelven más complejos y dependen de cadenas cada vez más largas de procesamiento, la gestión del crecimiento acumulado de los datos se convierte en un aspecto esencial para garantizar su robustez y resiliencia.

Parte de mi trabajo reciente en el análisis de vulnerabilidades móviles se ha centrado precisamente en este tipo de comportamientos emergentes, donde el problema no reside en un único componente defectuoso, sino en la interacción entre múltiples capas que, individualmente, parecen funcionar correctamente.

Atentamente,

Manuel Garcia Peña (Lostmon)

lostmon@gmail.com

https://lostmon.blogspot.com

#Lostmon #Android #AOSP #Ciberseguridad #MobileSecurity #SystemUI #libminikin #STA #StructuredTextAmplification #BugBounty #GoogleVRP #Xiaomi #HackerOne #SaludMental #InvestigaciónIndependiente #BojosXtu
Manuel Garcia Peña (Lostmon)
Investigador independiente · lostmon@gmail.com
Blog: lostmon.blogspot.com

Mozilla firefox focus and Nightly for Android remote crash DoS

Wednesday, October 12, 2022

########################

Mozilla Firefox, Focus and Nightly

For Android Remote Crash Dos 

Vulnerability.

Last update: 25/11/2022

########################


################

Description 

################

A vulnerability is present in the way that Mozilla  for Android mobile products manage the clipboard and handle excepcions. 

A evil site can take profit from software excepcions to do a crash in the app or to deny access to clipboard and cause a crash resulting in lost of available information that not save. 

If we close the app and clear cache etc, we have the same situation a crash or a Dos that Tdo a crash. :)

The vulnerability interact with parts of Android system like open links in app, and sharing functions. 

It's a of different error messages that the app can't handle or programmer store remote data in parcels, or how store data in clipboard and how process it. 

Multiple app are vulnerable to this style attack resulting in a lost of data, DoS to application, crash aplicattion or DoS to functions or application or dead browser treat activity and force user to close App. 

We can abuse parcels errors in

TransactionTooLargeException

DeadSystemException

Wen can abuse open in app or sharing functions or clipboard functions in


TransactionTooLargeException

DeadSystemException

ClipboardManager

content.ClipboardManager.getPrimaryClip


################

Versions afected:

################

Mozilla firefox 

107.1.0 Build #2015915067

106.1.0 built 2015907747

105.2.0 built 2015907747


Mozilla Nightly 

107.0a1 

built 2015909163 

built 2015909131

built 2015915115

108.0a1 

built 2015912339 

built 2015913675

109.0a1 

Build 2015916075

Build 2015917035

Build 2015917803


Mozilla Focus 

105.0.2 

built  362762015

107.1.0

Built 363142253

#########################

Related bugs in other apps

https://bugs.chromium.org/p/chromium/issues/detail?id=1385502


Mozilla issue tracker 

https://github.com/mozilla-mobile/focus-android/issues/8056

Posible related bug

https://github.com/mozilla-mobile/android-components/issues/12804

Tested on

Android 9, 10, 11, 12 and continue testing


################

Timelime

################

Discovered 28-08-2022

Vendor notify NO

Released 12-10-2022

Last update 25-11-2022

###############

No more details at this time. 

Exploit available in private. 

I update this advisore in few days with more information. 


################ €nd ####################

--
atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente.... 

Opera browser Speed dial Extensions XSS and CSRF

Tuesday, August 27, 2013
########################################
Opera Browser Speed Dial Extensions XSS and XSRF
Original advisore: http://lostmon.blogspot.com.es/2013/08/opera-browser-speed-dial-extensions-xss.html
########################################

############
Description:
############

Speed Dial gives you quick access to your favorite Web sites. Every time you open a new tab, you are presented with a 3x3 grid of thumbnails, each representing a Web address. To open a page, click on the corresponding thumbnail, or use the keyboard shortcuts. http://help.opera.com/Mac/10.50/en/speeddial.html

#########
Abstract
#########

Developers Build Extensions for fast access to web services like
Gmail, Flirk or Facebook.

Speed dial "protect users" to direct XSS attacks, but the extensions used in Speed ??Dial, are not free of bugs and some of them are not safe. A remote attacker could compose special attacks, for abusing the  functionality of these extensions in Speed Dial.


####################
Extensions for Gmail
####################

This two extenions show latest unread Emails from Gmail and are prone vulnerables to XSS & CSRF style atacks.

######
XSS:
######

If a attacker write a Email and in subject insert a html code it is executed in the extension.


















######
XSRF:
######

If a attacker compose a Email with subject like
 "><iframe src="https://mail.google.com/mail/?logout&hl=es"<>/iframe>
when the extension refresh content, it cause victim logout function.


https://addons.opera.com/es/extensions/details/gmail-on-speed-dial-ex/
https://addons.opera.com/es/extensions/details/gmail-on-speed-dial/

##############################
Extensions for Google Calendar
##############################

This Two extensions Show reminders and events from Google Calendar
and are prone vulnerables to XSS & CSRF style attacks

######
XSS:
######

If a attacker write a event in a shared calendar and in subject insert a html code it is executed in the extension.



######
XSRF:
######

If a attacker a event in a shared calendar with subject like
 "><iframe src="https://www.google.com/calendar/logout"<>/iframe>
when the extension refresh content, it cause victim logout function.


https://addons.opera.com/es/extensions/details/google-calendar/
https://addons.opera.com/es/extensions/details/gcaltoday/

################
Related Links
################

http://lostmon.blogspot.com.es/2010/09/google-chrome-instaled-extensions.html
http://www.osvdb.org/search?search[vuln_title]=lostmon%20extension&search[text_type]=alltext
http://www.oxdef.info/posts/2011/01/18/chrome-ext/
http://www.pcmag.com/article2/0,2817,2359778,00.asp


############## End ########################

##################
Solution
###################

No solution was available at this time !!!

 ################ €nd ####################

--
atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente.... 

GreenBrowser About: dialog XSS and stored XSS

Tuesday, March 27, 2012
########################################
GreenBrowser About: dialog XSS and stored XSS
Vendor URL:http://www.morequick.com/
advisore: http://lostmon.blogspot.com/2012/03/greenbrowser-about-dialog-xss-and.html
Vendor notify:NO  exploit available:yes
#######################################

GreenBrowser is your best choice of flexible and powerful green web browser. GreenBrowser is free to download and use.

GreenBrowser contains a two flaws that allows a remote cross site scripting (XSS) attack. This flaw exists because the application does not validate the about: Uri dialog and last visited pages. This may allow a user to create a specially crafted URL that would execute arbitrary script code in a user's browser within the trust relationship between their browser and the server.

Also the browser save the last URL visited and then, if a user create a crafted link and clin in, it is a stored XSS because when open the browser by default it open http://www.5igb.com/StartEn.htm and it have the last visited URL... The xss is executed in this URL :) page and browser not validate LastVisitWriteEn() before render to the user.

You can see this function here => http://www.5igb.com/function.js

#################
Proof of Concept
 #################

create a html doc and write this code, click in the link and it execute the xss close the browser and open it again, in last visit pages we have the url of PoC and it executes the stored XSS

 <html><body>
<a href='about:"><script>alert(1)</script>'>GreenBrowser about: handler XSS</a>
</body></html>

 ################
Versions afected
 ################

6.1.0117 (2012-01-17 10:22:02)
 6.1.0216 (2012-02-16 21:37:10)

 ##################
Solution
 ###################

No solution was available at this time !!!

 ################ €nd ####################

-- 
atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente....

Multiple vulnerabilities in Flock Browser 3.0.0.3989

Friday, March 11, 2011
#########################################
Multiple vulnerabilities in Flock Browser 3.0.0.3989
Vendor URL: http://beta.flock.com/
Vendor Advisores: http://www.flock.com/security/
Advisore:http://lostmon.blogspot.com/2011/03/multiple-vulnerabilities-in-flock.html
Vendor notify:YES exploits availables:YES
#########################################

Some stuff that i don't have published before , because i don't have time , i'm studing and i need time to read books and study.

Flock is faster, simpler, and more friendly. Literally. It's the only sleek, modern web browser with the built-in ability to keep you up-to-date with your Facebook and Twitter friends. This browser version (3.0.0.3989) is based in a old chromium project (5.0.375.75) and has multiple bugs imported from chrome and his owns bugs :) 
I have contributed in secure Flock browser, i have tested version with google chrome  base.
I have do a list with all issues that i found and Flock Team has release some advisores about it time after.

###############
TODO LIST / Bugs
###############
  1.  Inspector window attributes script injection chrome bug 31590
  2.  XSS in search engine in chrome://history/ chrome bug 13760( not exploitable from remote attackers ) (chrome://history/#q="><iframe src=javascript:alert(1)>&p=0)
  3.  XSS in search box in favorites page ( chrome-extension://flock_people/favorites.html#p=1&v=all&o=0&s=title)(not explotable from remote attackers)
  4.  XSS in search engine extension when paste in url (chrome-extension://flock_people/search.html)( persistent xss)(not exploiable from remote attackers)
  5.  XSS in social extension when try to login in facebook or twiter or youtube (not exploitable from remote attackers)
  6.  XSS in rss vienwer in search box chrome-extension://flock_people/feed_viewer.html?http://path_to_rss ( not exploitable from remote attackers)
  7.  XSS in rss viewner when render xml from remote host if the entry has html it is executed when view the news across flock rss viewner(exploitable via remote sites) (see for example my feed => chrome-extension://flock_people/feed_viewer.html?http://lostmon.blogspot.com/atom.xml) and them if you type in search box for example " or < it executes again the xss stored in xml file :) 
  8. window.open() Method Javascript Same-Origin Policy Violation chrome bug 30660  
  9. url with a leading NULL byte can bypass cross origin protection Chrome bug 37383


###########################
Advisores from Flock developers
###########################
FLOCK-SA-2010-04

Title: window.open() Method Javascript Same-Origin Policy Violation (XSS)
Impact: High
Announced on: 2010-09-09
Affected Products: Flock 3 versions prior to 3.0.0.4094
CVEs (cve.mitre.org): CVE-2010-0661
Details:
WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp in WebKit before r52401, as used in Google Chrome before 4.0.249.78, allows remote attackers to bypass the Same Origin Policy via vectors involving the window.open method.

Credit to Tokuji Akamine, Senior Consultant at Symantec Consulting Services (for Chromium) and Lostmon Lords (for Flock).
References: https://bugs.webkit.org/show_bug.cgi?id=32647
http://code.google.com/p/chromium/issues/detail?id=30660

FLOCK-SA-2010-03

Title: javascript: url with a leading NULL byte can bypass cross origin protection (XSS)
Impact: High
Announced on: 2010-09-09
Affected Products: Flock 3 versions prior to 3.0.0.4112
CVEs (cve.mitre.org): CVE-2010-1236

Details:
A javascript: url with a leading NULL byte can bypass cross origin protection,
which has unspecified impact and remote attack vectors.

Credit to kuzzcc (for Chromium) and Lostmon Lords (for Flock).
References: https://bugs.webkit.org/show_bug.cgi?id=35948
http://code.google.com/p/chromium/issues/detail?id=37383

FLOCK-SA-2010-02

Title: A malicious RSS feed can bypass cross origin protection (XSS)
Impact: High
Announced on: 2010-09-09
Affected Products: Flock 3 versions prior to 3.0.0.4114
CVEs (cve.mitre.org): CVE-2010-3262

Details:
A malicious RSS feed containg HTML when viewed can bypass cross-origin protection,
which has unspecified impact and remote attack vectors.
Credit to Lostmon Lords.

FLOCK-SA-2010-01

Title: A malformed favourite can bypass cross origin protection (XSS)
Impact: Moderate
Announced on: 2010-09-09
Affected Products: Flock 3 versions prior to 3.0.0.4094
CVEs (cve.mitre.org): CVE-2010-3202
Details:
A malformed favourite imported from an HTML file, imported from another browser,
or manually created can bypass cross-origin protection, which has unspecified impact
and attack vectors.
Credit to Lostmon Lords.
References: http://www.securityfocus.com/archive/1/513214
################################################

Atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente....

Google Services Notifier Chrome extension XSS/CSRF

Friday, June 18, 2010
######################################
Google Services Notifier Chrome extension XSS/CSRF
extension:https://chrome.google.com/extensions/detail/dmgbflokapnkfnegeigclohhplnflgie
advisore:http://lostmon.blogspot.com/2010/06/google-services-notifier-chrome.html
Exploit available:yes vendor notify : NO
#######################################

So in this case "Notifier for Google Wave Chrome"
has a flaw that allow attackers to make XSS style attacks.

All extensions runs over his origin and no have way to altered data from extension
or get sensitive data like , email account or password etc..

if we look how many users have instaled this extension =>
https://chrome.google.com/extensions/detail/dmgbflokapnkfnegeigclohhplnflgie
109 users have instaled it (WoW)

############
explanation
############

Google Services Notifier allows users to view wen they have a new wave and
view a preview of it ....

"Keep you update with Google services like Google Mail,Blogger,Reader,YouTube,
Google Docs, Google Wave etc. More services will be added soon."

If a attacker compose a new mail with html or javascript code in
subject & send it to victim´s the code is executed wen Victim´s click in the
extension to view a preview of mail.

So for exploit we need to compose a "special" mail
for example if we put directly in the mail subject a iframe like
"><iframe src="javascript:alert(location.href);"></iframe>
in the two cases the alert is executed wen try to preview the mail
with the extension :) it is executed in context location.href value is
"about:blank"

For example send a mail With a logout acction in google wave in body
"><iframe src="https://wave.google.com/wave/logout"></iframe>
it closes the sesion on google wave , this is a CSRF.

######################€nd#################################
.
Thnx for your time !!!
atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente....

Notifier for Google Wave Chrome extension XSS/CSRF

######################################
Notifier for Google Wave Chrome extension XSS/CSRF
extension:https://chrome.google.com/extensions/detail/aphncaagnlabkeipnbbicmcahnamibgb
advisore:http://lostmon.blogspot.com/2010/06/notifier-for-google-wave-chrome.html
Exploit available:yes vendor notify : NO
#######################################

So in this case "Notifier for Google Wave Chrome"
has a flaw that allow attackers to make XSS style attacks.

All extensions runs over his origin and no have way to altered data from extension
or get sensitive data like , email account or password etc..

if we look how many users have instaled this extension =>
https://chrome.google.com/extensions/detail/aphncaagnlabkeipnbbicmcahnamibgb
56,542 users have instaled it (WoW)

############
explanation
############

Notifier for Google Wave allows users to view wen they have a new wave and
view a preview of it ....

If a attacker compose a new wave with html or javascript code in
body & send it to victim´s the code is executed wen Victim´s click in the
extension to view a preview of wave.

So for exploit we need to compose a "special" wave
for example if we put directly in the mail body a iframe like
"><iframe src="javascript:alert(location.href);"></iframe>
in the two cases the alert is executed wen try to preview the wave
with the extension :) it is executed in context location.href value is
"about:blank"

For example send a wave With a logout acction in google wave in body
"><iframe src="https://wave.google.com/wave/logout"></iframe>
it closes the sesion on google wave , this is a CSRF.

######################€nd#################################
.

Thnx for your time !!!

atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente....

Gmail Checker plus Chrome extension XSS/CSRF II

Thursday, June 17, 2010
######################################
Gmail Checker plus Chrome extension XSS/CSRF II
extension: https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe
advisore:http://lostmon.blogspot.com/2010/06/gmail-checker-plus-chrome-extension.html
Exploit available:yes vendor notify: NO
#######################################

So in this case "Google Mail Checker Plus" version 1.1.7 (2010-02-10)
has a flaw that allow attackers to make XSS style attacks.

All extensions runs over his origin and no have way to altered data from extension
or get sensitive data like , email account or password etc..

if we look how many users have instaled this extension =>
https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe
303,711 users have instaled it (WoW)

############
explanation
############

Google Mail Checker Plus allows users to view wen they have a new mail and
view a preview of the mail ....

If a attacker compose a new mail with html or javascript code in mail
body & send it to victim´s the code is executed wen Victim´s click in the
extension to view a preview of mail.

So for exploit we need to compose a "special" mail
for example if we put directly in the mail body a iframe like
"><iframe src="javascript:alert(location.href);"></iframe>
the extension shows this code in plain text and the alert isn´t executed...
them we need to use a Feature from gmail ( auto conver links in clicable urls)
them we can compose a email body with a http link like
http://"><iframe src="javascript:alert(location.href);"></iframe>
or compose a mail link like :
lalala@"><iframe src="javascript:alert(location.href);"></iframe>.com
in the two cases the alert is executed wen try to preview the email
with the extension :) it is executed in context location.href value is
"about:blank"


Gmail is a safe place , but the extensions to manage it, can be a potential
vector to attack.

For example send a email With a logout acction in gmail in body
http://"><iframe src="https://mail.google.com/mail/?logout&hl=es"></iframe>
it closes the sesion on gmail , this is a CSRF.
also if the user has mark option to show notifications on desktop this issue execute the iframe too in the desktop notifications window and can cause to a denial of service of extension, for example if the victim´s try to change any option in options page from extension :P

So we have dispute it in http://code.google.com/p/chromium/issues/detail?id=45401
The developer has release a patch version in trunk for other issues what i disclose before
see for references for previous vulns => OSVDB ID :65459 and OSVDB ID: 65460
previous patch =>
http://github.com/AndersSahlin/MailCheckerPlus/blob/54ab118e505feae819e676c8e525e8fe5409c981/src/mailaccount.class.js
and see diff => http://github.com/AndersSahlin/MailCheckerPlus/commit/54ab118e505feae819e676c8e525e8fe5409c981#diff-0

I release it as 0-day and no notify to vendor because
in the previous issues , he patch the vulns and don´t
make any reference to it and stealing credits on discover
Them i release this new vulns without notify developer :)


UPDATED :Now the extension in about secition reflects the vulnerability and credit it to me :)



######################€nd#################################
.

Thnx for your time !!!

atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente....

Gmail Checker plus Chrome extension XSS

Thursday, June 03, 2010
######################################
Gmail Checker plus Chrome extension XSS
extension: https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe
advisore:http://lostmon.blogspot.com/2010/06/gmail-checker-plus-chrome-extension-xss.html
Exploit available:yes
#######################################

So in this case "Google Mail Checker Plus" version 1.1.7 (2010-02-10)
has a flaw that allow attackers to make XSS style attacks.

All extensions runs over his origin and no have way to altered data from extension or get sensitive data like , email account or password etc..

if we look how many users have instaled this extension =>
https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe
303,711 users have instaled it (WoW)

############
explanation
############

Google Mail Checker Plus allows users to view wen they have a new mail and
view a preview of the mail ....

if a attacker compose a new mail with html or javascript code in subject form field and send it to victim´s the code is executed wen Victim´s click in the extension to view the mail and wen victim´s accept the alert and view a preview of mail the iframe is executed too.

Gmail is a safe place , but the extension to manage it can be a potential
vector to attack it.

For example send a email With a logout acction in gmail in subject
"><iframe src="https://mail.google.com/mail/?logout&hl=es"></iframe>
it closes the sesion on gmmail , this is a XSRF , and , in the case what you say aa
it is executed in context and the location.href value is "about:blank"

So we have dispute it in http://code.google.com/p/chromium/issues/detail?id=45401
The developer has release a patch version in trunk =>
http://github.com/AndersSahlin/MailCheckerPlus/blob/54ab118e505feae819e676c8e525e8fe5409c981/src/mailaccount.class.js
please donload it and copy to your extension folder to solve it.

See Diff => http://github.com/AndersSahlin/MailCheckerPlus/commit/54ab118e505feae819e676c8e525e8fe5409c981#diff-0

######################€nd#################################
.

Thnx for your time !!!

atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
Google group: http://groups.google.com/group/lostmon (new)
--
La curiosidad es lo que hace mover la mente....
 

Browse

About:Me

My blog:http://lostmon.blogspot.com
Mail:Lostmon@gmail.com
Lostmon Google group
Lostmon@googlegroups.com

La curiosidad es lo que hace
mover la mente...

Friends