> For the complete documentation index, see [llms.txt](https://sec88.0x88.online/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sec88.0x88.online/cloud-sec/firebase-test-cases.md).

# Firebase Test Cases

<details>

<summary><strong>Signup Misconfigurations</strong></summary>

**Test Firebase Identity Toolkit**

{% code overflow="wrap" %}

```bash
curl -X POST "https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=AIzaSyCpGNhMyM9-xMnITdD0uGSQOq2GbSrG8M0" \
  -H "Content-Type: application/json" \
  -d '{"email":"test@target.com","password":"test","returnSecureToken":true}'
```

{% endcode %}

**Test anonymous signup**

{% code overflow="wrap" %}

```bash
curl -X POST "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyCpGNhMyM9-xMnITdD0uGSQOq2GbSrG8M0" \
  -H "Content-Type: application/json" \
  -d '{}'
```

{% endcode %}

</details>

<details>

<summary><strong>Firebase Cloud Messaging</strong></summary>

{% code overflow="wrap" %}

```bash
curl -s -X POST --header "Authorization: key=AI..." --header "Content-Type:application/json" 'https://fcm.googleapis.com/fcm/send' -d '{"registration_ids":["1"]}'
```

{% endcode %}

</details>

<details>

<summary><strong>Test API Key Restrictions (Referrer Bypass)</strong></summary>

{% code overflow="wrap" %}

```bash
curl -s -X POST -H "Content-Type: application/json" \
  -d '{"returnSecureToken":true}' \
  "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=$API_KEY"
```

{% endcode %}

</details>

<details>

<summary><strong>Test Realtime Database Rules (Unauthenticated Read)</strong></summary>

{% code overflow="wrap" %}

```bash
curl -s "https://firestore.googleapis.com/v1/projects/$PROJECT_ID/databases/(default)/documents?key=$API_KEY"
```

{% endcode %}

</details>

<details>

<summary><strong>Test Multi-Tenant Identity Abuse</strong></summary>

{% code overflow="wrap" %}

```bash
curl -s -X POST -H "Content-Type: application/json" \
  -d '{"tenantId":"'$TENANT_ID'","returnSecureToken":true}' \
  "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=$API_KEY"
```

{% endcode %}

</details>

*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sec88.0x88.online/cloud-sec/firebase-test-cases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
