5.5 CVE-2021-31317
Enriched by CISA Exploit
Telegram Android <7.1.0 (2090), Telegram iOS <7.1, and Telegram macOS <7.1 are affected by a Type Confusion in the VDasher constructor of their custom fork of the rlottie library. A remote attacker might be able to access Telegram's heap memory out-of-bounds on a victim device via a malicious animated sticker.
https://nvd.nist.gov/vuln/detail/CVE-2021-31317
Categories
CWE-843 : Access of Resource Using Incompatible Type ('Type Confusion')
The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) Type confusion in PHP app allows authentication bypass when users have passwords whose MD5 hashes can be interpreted as numbers Type confusion in CSS sequence leads to out-of-bounds read. Size inconsistency allows code execution, first discovered when it was actively exploited in-the-wild. Improperly-parsed file containing records of different types leads to code execution when a memory location is interpreted as a different object than intended.
References
af854a3a-2127-422b-91ae-364da2661108 Exploit
| https://www.shielder.it/advisories/telegram-rlottie-vdasher-vdasher-type-conf... Exploit Third Party Advisory |
| https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-s... Exploit Third Party Advisory |
cve@mitre.org Exploit
| https://www.shielder.it/advisories/telegram-rlottie-vdasher-vdasher-type-conf... Exploit Third Party Advisory |
| https://www.shielder.it/blog/2021/02/hunting-for-bugs-in-telegrams-animated-s... Exploit Third Party Advisory |
AFFECTED (from MITRE)
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a |
|
| © 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. | ||
CPE
| cpe | start | end |
|---|---|---|
| Configuration 1 | ||
| cpe:2.3:a:telegram:telegram:*:*:*:*:*:android:*:* | < 7.1.0 | |
| cpe:2.3:a:telegram:telegram:*:*:*:*:*:iphone_os:*:* | < 7.1.0 | |
| cpe:2.3:a:telegram:telegram:*:*:*:*:*:macos:*:* | < 7.1.0 | |
REMEDIATION
EXPLOITS
Exploit-db.com
| id | description | date | |
|---|---|---|---|
| No known exploits | |||
POC Github
| Url |
|---|
| No known exploits |
Other Nist (github, ...)
CAPEC
Common Attack Pattern Enumerations and Classifications
| id | description | severity |
|---|---|---|
| No entry | ||
Cybersecurity needs ?
Strengthen software security from the outset with our DevSecOps expertise
Integrate security right from the start of the software development cycle for more robust applications and greater customer confidence.
Our team of DevSecOps experts can help you secure your APIs, data pipelines, CI/CD chains, Docker containers and Kubernetes deployments.
