
CVE-2026-21010 के लिए Python PoC जो कैप्चर किए गए SIP digest Authorization हेडर्स को रीप्ले करके nonce विशिष्टता/समाप्ति को बायपास करता है और अनधिकृत VoIP कॉल करता है।
# sip_server_sim.py - SIP server that accepts replayed authenticated requests
from flask import Flask, request
app = Flask(__name__)
# Simulated nonce storage: doesn't track used nonces
used_nonces = set()
@app.route('/call', methods=['POST'])
def call():
auth_header = request.headers.get('Authorization')
if not auth_header:
return 'Unauthorized', 401, {'WWW-Authenticate': 'Digest realm="test", nonce="abc123"'}
# Vulnerability: no replay protection; accepts the same nonce repeatedly
# In real SIP, a nonce should be used once; here we skip that check.
return "Call connected"
if __name__ == '__main__':
app.run(port=5060)
एक SIP सर्वर डाइजेस्ट प्रमाणीकरण लागू करता है, लेकिन nonce की विशिष्टता या समाप्ति सुनिश्चित नहीं करता है। एक हमलावर एक वैध Authorization हेडर को कैप्चर कर सकता है और उसे रीप्ले करके अनधिकृत कॉल कर सकता है, जिससे प्रमाणीकरण बायपास हो जाता है।
pip install flask
python sip_server_sim.py
python exploit_sip_replay.py
रीप्ले किया गया अनुरोध सफल होता है।