Skip to content
Misconfiguration Disclosed report Beginner

Headers Missing

The report notes that several security-related HTTP response headers are absent or weakly configured on a Twitter advertising domain, including a cookie without the Secure and HttpOnly flags and a content security policy that permits inline and eval. The author does not demonstrate any actual exploitation, so the practical attacker impact is not shown.

hammad Follow

Originally disclosed on HackerOne

  • Disclosed after under an hour

Hellow Twiiter,

i found that some of the headers are missing on the domain ads.twitter,com!

            Name                               Actual Value                                   My Recommendation

strict-transport-security max-age=631138519 Use 'max-age=31536000; includeSubDomains' set-cookie guest_id=v1%3A141600...ov-2016 23:50:40 UTC Add 'secure; httponly;' cache-control must-revalidate, private, max-age=0 Add 'no-cache, no-store' Pragma Use 'no-cache' Expires Use '-1' X-Permitted-Cross-Domain-Policies Use 'master-only' Content-Security-Policy Try Content-Security-Policy-Report-Only to start. Include default- src 'self', avoid 'unsafe-inline' and 'unsafe-eval'

content-security-policy-report-only default-src 'self'; ...Y3PMNVQ%3D%3D%3D%3D; Avoid 'unsafe-inline'. Avoid 'unsafe-eval'. Include default-src 'self', avoid 'unsafe-inline' and 'unsafe-eval'

Thanks

The original report as published on HackerOne, by hammad. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a server or application configuration that omits or under-specifies standard security response headers and cookie flags.

Impact

Without the recommended flags and policy, a cookie could be exposed to script or sent over plain connections and injected script would be less constrained, but the text shows no working attack.

What the attacker needed

None

The fix

The headers and cookie flags should be tightened as the author recommends, for example adding Secure and HttpOnly to the cookie and starting with a report-only content security policy.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a website sends a page to your browser, it also sends small labels called headers that tell the browser how to behave. Some of these labels make the site safer, for example by stopping scripts from running or by keeping a login cookie away from JavaScript. This report says some of those safety labels are missing or set weakly, but it does not show anyone actually breaking in because of it.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by hammad

View all

1 more disclosed report, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.