iOS Pasteboard Data Leakage. Use this skill whenever diffs may introduce security issues on mobile, especially in Swift, Objective-C. Actively look for: Sensitive data copied to UIPasteboard.general accessible by other apps across system. and report findings with medium severity expectations and actionable fixes.
securitymediummobileSwift, Objective-CSensitive data copied to UIPasteboard.general accessible by other apps across system.
// BUGGY CODE — should be detected
// Example demonstrating the vulnerability
Expected finding: Medium — Sensitive data copied to UIPasteboard.general accessible by other apps across sy... Implement proper security controls.
// BUGGY CODE — should be detected
// Alternative pattern showing same issue
Expected finding: Medium — Similar vulnerability via different code path. Apply recommended mitigations.
// CORRECT CODE — should NOT be flagged
// Demonstrates proper security controls
Why it's correct: Implements recommended security practices and validation.