
CVE-2015-2231 POC
CVE-2015-2231 Prova de Conceito
A POC que estava usando para demonstrar a CVE-2015-2231 'Get Super Serial'. Algumas pessoas me pediram para postá-la para que pudessem usar coisas semelhantes em outros dispositivos baseados em firmware ADUPS que possuem essa vulnerabilidade. Estou limpando o laptop e postando isso antes que se perca.
Esta aplicação apenas cria um botão que pode ser clicado, o que executaria sh /data/local/tmp/yay/shell.sh como system. No diretório "scripts-for-device" estão os scripts reais que usei, porém nem todos os binários estão disponíveis. Você pode obtê-los no site do supersu. Você também deve criar um diretório legível/gravável mundialmente em /data/local/tmp/yay/ e colocar os arquivos necessários lá.
Isso é meramente uma prova de conceito e possui valores hardcoded que provavelmente funcionarão apenas para um telefone Blu muito específico que eu estava testando. Não tente executar isso em um dispositivo sem entender o que está acontecendo e modificá-lo para seus propósitos. Caso contrário, você provavelmente irá brickar seu dispositivo.
The MIT License (MIT)
Copyright (c) 2015 Red Naga
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.