B
B
Blankspace2022-02-22 15:50:58
Objective-C
Blankspace, 2022-02-22 15:50:58

Is it possible to embed an executable script in qr code?

Is it possible to implement objective-c or another PL for instant execution when scanning?
If not, what are the limitations of qr ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-02-22
@Blankspace

Like yes, but like no.
Limitations:
1. The QR code contains very little data, even in theory. In practice - with a very large amount of data, the user will not even be able to scan it.
2. The QR code is scanned by the app. The application must know what to do with your code - otherwise the code will be perceived as raw data or raw text.
3. Objective-c is compiled to native code, which makes it dependent on the OS and processor architecture. Emnip, in principle, it will not be possible to use it on Android, and in principle it is impossible to run third-party code on an iPhone.
In theory, you can compile any code into webassembly (and in the case of js, you don’t even need it) and encode it as a data URL, which will allow you to open and run it in the browser.
But I don't know if objective-c can be compiled to wasm.
I do not consider any options with RCE and similar vulnerabilities in the scanner application.
PS: I think you have an XY problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question